Twenty Fourteen: Avoid a PHP notice in Ephemera widget.

props jartes.
fixes #28055.

git-svn-id: https://develop.svn.wordpress.org/trunk@28248 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov 2014-05-02 18:45:06 +00:00
parent 5ad1751132
commit d0ced880bb
1 changed files with 1 additions and 1 deletions

View File

@ -47,7 +47,7 @@ class Twenty_Fourteen_Ephemera_Widget extends WP_Widget {
* @param array $instance An array of settings for this widget instance. * @param array $instance An array of settings for this widget instance.
*/ */
public function widget( $args, $instance ) { public function widget( $args, $instance ) {
$format = $instance['format']; $format = isset( $instance['format'] ) && in_array( $instance['format'], $this->formats ) ? $instance['format'] : 'aside';
switch ( $format ) { switch ( $format ) {
case 'image': case 'image':