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
This commit is contained in:
Sergey Biryukov 2015-06-22 15:19:53 +00:00
parent e03d853fe6
commit ef8ed3e279
1 changed files with 1 additions and 1 deletions

View File

@ -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'] = '<p>[embed]' . $data['u'] . '[/embed]</p>';
if ( ! empty( $data['s'] ) ) {