mirror of
git://develop.git.wordpress.org/
synced 2025-03-14 17:09:47 +01:00
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:
parent
e03d853fe6
commit
ef8ed3e279
@ -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'] ) ) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user