WordPress.org

Make WordPress Core

Changeset 32901


Ignore:
Timestamp:
06/22/2015 03:19:53 PM (5 years ago)
Author:
SergeyBiryukov
Message:

Avoid a PHP notice in WP_Press_This::get_suggested_content() after [32828].

props kraftbj.
fixes #32751.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-press-this.php

    r32828 r32901  
    11051105        $default_html = array( 'quote' => '', 'link' => '', 'embed' => '' );
    11061106
    1107         if ( $this->_limit_embed( $data['u'] ) ) {
     1107        if ( ! empty( $data['u'] ) && $this->_limit_embed( $data['u'] ) ) {
    11081108            $default_html['embed'] = '<p>[embed]' . $data['u'] . '[/embed]</p>';
    11091109
Note: See TracChangeset for help on using the changeset viewer.