Changeset 59663
- Timestamp:
- 01/18/2025 11:41:46 PM (4 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-xmlrpc-server.php
r59660 r59663 6886 6886 $urltest = parse_url( $pagelinkedto ); 6887 6887 $post_id = url_to_postid( $pagelinkedto ); 6888 6888 6889 if ( $post_id ) { 6889 6890 // $way … … 6918 6919 return $this->pingback_error( 33, __( 'The specified target URL cannot be used as a target. It either does not exist, or it is not a pingback-enabled resource.' ) ); 6919 6920 } 6921 6920 6922 $post_id = (int) $post_id; 6921 6922 $post = get_post( $post_id ); 6923 $post = get_post( $post_id ); 6923 6924 6924 6925 if ( ! $post ) { // Post not found. … … 6926 6927 } 6927 6928 6928 if ( url_to_postid( $pagelinkedfrom ) == $post_id ) {6929 if ( url_to_postid( $pagelinkedfrom ) === $post_id ) { 6929 6930 return $this->pingback_error( 0, __( 'The source URL and the target URL cannot both point to the same resource.' ) ); 6930 6931 }
Note: See TracChangeset
for help on using the changeset viewer.