From ef8ed3e2792fea417a9771d640f72ce4a79e629e Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Mon, 22 Jun 2015 15:19:53 +0000 Subject: [PATCH] Avoid a PHP notice in `WP_Press_This::get_suggested_content()` after [32828]. props kraftbj. fixes #32751. git-svn-id: https://develop.svn.wordpress.org/trunk@32901 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/includes/class-wp-press-this.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-admin/includes/class-wp-press-this.php b/src/wp-admin/includes/class-wp-press-this.php index b276eb31b7..232fbb47e6 100644 --- a/src/wp-admin/includes/class-wp-press-this.php +++ b/src/wp-admin/includes/class-wp-press-this.php @@ -1104,7 +1104,7 @@ class WP_Press_This { $default_html = array( 'quote' => '', 'link' => '', 'embed' => '' ); - if ( $this->_limit_embed( $data['u'] ) ) { + if ( ! empty( $data['u'] ) && $this->_limit_embed( $data['u'] ) ) { $default_html['embed'] = '

[embed]' . $data['u'] . '[/embed]

'; if ( ! empty( $data['s'] ) ) {