--- a/wp/wp-includes/class-wp-xmlrpc-server.php Wed Sep 21 18:19:35 2022 +0200
+++ b/wp/wp-includes/class-wp-xmlrpc-server.php Tue Sep 27 16:37:53 2022 +0200
@@ -186,7 +186,7 @@
private function set_is_enabled() {
/*
* Respect old get_option() filters left for back-compat when the 'enable_xmlrpc'
- * option was deprecated in 3.5.0. Use the 'xmlrpc_enabled' hook instead.
+ * option was deprecated in 3.5.0. Use the {@see 'xmlrpc_enabled'} hook instead.
*/
$is_enabled = apply_filters( 'pre_option_enable_xmlrpc', false );
if ( false === $is_enabled ) {
@@ -2271,11 +2271,11 @@
* @param array $args {
* Method arguments. Note: arguments must be ordered as documented.
*
- * @type int $blog_id Blog ID (unused).
- * @type string $username Username.
- * @type string $password Password.
- * @type string $taxnomy_name Taxonomy name.
- * @type int $term_id Term ID.
+ * @type int $blog_id Blog ID (unused).
+ * @type string $username Username.
+ * @type string $password Password.
+ * @type string $taxonomy_name Taxonomy name.
+ * @type int $term_id Term ID.
* }
* @return true|IXR_Error True on success, IXR_Error instance on failure.
*/
@@ -2344,7 +2344,7 @@
* @type int $blog_id Blog ID (unused).
* @type string $username Username.
* @type string $password Password.
- * @type string $taxnomy Taxonomy name.
+ * @type string $taxonomy Taxonomy name.
* @type string $term_id Term ID.
* }
* @return array|IXR_Error IXR_Error on failure, array on success, containing:
@@ -2417,7 +2417,7 @@
* @type int $blog_id Blog ID (unused).
* @type string $username Username.
* @type string $password Password.
- * @type string $taxnomy Taxonomy name.
+ * @type string $taxonomy Taxonomy name.
* @type array $filter Optional. Modifies the query used to retrieve posts. Accepts 'number',
* 'offset', 'orderby', 'order', 'hide_empty', and 'search'. Default empty array.
* }
@@ -2509,7 +2509,7 @@
* @type int $blog_id Blog ID (unused).
* @type string $username Username.
* @type string $password Password.
- * @type string $taxnomy Taxonomy name.
+ * @type string $taxonomy Taxonomy name.
* @type array $fields Optional. Array of taxonomy fields to limit to in the return.
* Accepts 'labels', 'cap', 'menu', and 'object_type'.
* Default empty array.
@@ -6399,7 +6399,7 @@
/**
* Filters whether to preempt the XML-RPC media upload.
*
- * Passing a truthy value will effectively short-circuit the media upload,
+ * Returning a truthy value will effectively short-circuit the media upload,
* returning that value as a 500 error instead.
*
* @since 2.1.0
@@ -6894,14 +6894,14 @@
}
} 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 @@
// 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.
@@ -6923,7 +6923,7 @@
$remote_ip = preg_replace( '/[^0-9a-fA-F:., ]/', '', $_SERVER['REMOTE_ADDR'] );
- /** This filter is documented in wp-includes/class-http.php */
+ /** This filter is documented in wp-includes/class-wp-http.php */
$user_agent = apply_filters( 'http_headers_useragent', 'WordPress/' . get_bloginfo( 'version' ) . '; ' . get_bloginfo( 'url' ), $pagelinkedfrom );
// Let's check the remote site.
@@ -6963,7 +6963,7 @@
preg_match( '|<title>([^<]*?)</title>|is', $remote_source, $matchtitle );
$title = isset( $matchtitle[1] ) ? $matchtitle[1] : '';
if ( empty( $title ) ) {
- return $this->pingback_error( 32, __( 'We cannot find a title on that page.' ) );
+ return $this->pingback_error( 32, __( 'A title on that page cannot be found.' ) );
}
// Remove all script and style tags including their content.
@@ -7075,7 +7075,7 @@
$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 );