Make WordPress Core


Ignore:
Timestamp:
05/02/2014 06:45:06 PM (10 years ago)
Author:
SergeyBiryukov
Message:

Twenty Fourteen: Avoid a PHP notice in Ephemera widget.

props jartes.
fixes #28055.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentyfourteen/inc/widgets.php

    r27595 r28248  
    4848     */
    4949    public function widget( $args, $instance ) {
    50         $format = $instance['format'];
     50        $format = isset( $instance['format'] ) && in_array( $instance['format'], $this->formats ) ? $instance['format'] : 'aside';
    5151
    5252        switch ( $format ) {
Note: See TracChangeset for help on using the changeset viewer.