mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-12 12:50:28 +00:00
Administration: Replace contracted verb forms for better consistency.
This changeset replaces contracted verb forms like `doesn't`, `can't`, or `isn't` with non-contracted forms like `does not`, `cannot`, or `is not`, for better consistency across the WordPress administration. It also updates some corresponding unit tests strings. Props Presskopp, socalchristina, aandrewdixon, francina, SergeyBiryukov, JeffPaul, audrasjb, hellofromTonya. Fixes #38913. See #39176. git-svn-id: https://develop.svn.wordpress.org/trunk@52978 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -6894,14 +6894,14 @@ class wp_xmlrpc_server extends IXR_Server {
|
||||
}
|
||||
} else {
|
||||
// TODO: Attempt to extract a post ID from the given URL.
|
||||
return $this->pingback_error( 33, __( 'The specified target URL cannot be used as a target. It either doesn’t exist, or it is not a pingback-enabled resource.' ) );
|
||||
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.' ) );
|
||||
}
|
||||
$post_ID = (int) $post_ID;
|
||||
|
||||
$post = get_post( $post_ID );
|
||||
|
||||
if ( ! $post ) { // Post not found.
|
||||
return $this->pingback_error( 33, __( 'The specified target URL cannot be used as a target. It either doesn’t exist, or it is not a pingback-enabled resource.' ) );
|
||||
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.' ) );
|
||||
}
|
||||
|
||||
if ( url_to_postid( $pagelinkedfrom ) == $post_ID ) {
|
||||
@@ -6910,7 +6910,7 @@ class wp_xmlrpc_server extends IXR_Server {
|
||||
|
||||
// Check if pings are on.
|
||||
if ( ! pings_open( $post ) ) {
|
||||
return $this->pingback_error( 33, __( 'The specified target URL cannot be used as a target. It either doesn’t exist, or it is not a pingback-enabled resource.' ) );
|
||||
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.' ) );
|
||||
}
|
||||
|
||||
// Let's check that the remote site didn't already pingback this entry.
|
||||
@@ -7075,7 +7075,7 @@ class wp_xmlrpc_server extends IXR_Server {
|
||||
$post_ID = url_to_postid( $url );
|
||||
if ( ! $post_ID ) {
|
||||
// We aren't sure that the resource is available and/or pingback enabled.
|
||||
return $this->pingback_error( 33, __( 'The specified target URL cannot be used as a target. It either doesn’t exist, or it is not a pingback-enabled resource.' ) );
|
||||
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.' ) );
|
||||
}
|
||||
|
||||
$actual_post = get_post( $post_ID, ARRAY_A );
|
||||
|
||||
Reference in New Issue
Block a user