Changeset 38620 for trunk/src/wp-includes/class-wp-xmlrpc-server.php
- Timestamp:
- 09/18/2016 02:25:13 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-xmlrpc-server.php
r38600 r38620 6324 6324 6325 6325 preg_match( '|<title>([^<]*?)</title>|is', $remote_source, $matchtitle ); 6326 $title = $matchtitle[1]; 6327 if ( empty( $title ) ) 6328 return $this->pingback_error( 32, __('We cannot find a title on that page.' ) ); 6326 $title = isset( $matchtitle[1] ) ? $matchtitle[1] : ''; 6327 if ( empty( $title ) ) { 6328 return $this->pingback_error( 32, __( 'We cannot find a title on that page.' ) ); 6329 } 6329 6330 6330 6331 $remote_source = strip_tags( $remote_source, '<a>' ); // just keep the tag we need
Note: See TracChangeset
for help on using the changeset viewer.