From 7d8809c98b95c78a9dd0c05e288e4374e21059f2 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Wed, 28 Feb 2018 03:19:31 +0000 Subject: [PATCH] XML-RPC: Unify permission error messages in `wp_xmlrpc_server`. Props ramiy. Fixes #42266. Built from https://develop.svn.wordpress.org/trunk@42764 git-svn-id: http://core.svn.wordpress.org/trunk@42594 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/class-wp-xmlrpc-server.php | 12 ++++++------ wp-includes/version.php | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/wp-includes/class-wp-xmlrpc-server.php b/wp-includes/class-wp-xmlrpc-server.php index 9546f1a376..948564abce 100644 --- a/wp-includes/class-wp-xmlrpc-server.php +++ b/wp-includes/class-wp-xmlrpc-server.php @@ -3920,7 +3920,7 @@ class wp_xmlrpc_server extends IXR_Server { } if ( ! current_user_can( 'publish_posts' ) ) { - return new IXR_Error( 403, __( 'Sorry, you are not allowed access to details about this site.' ) ); + return new IXR_Error( 403, __( 'Sorry, you are not allowed to access details about this site.' ) ); } /** This action is documented in wp-includes/class-wp-xmlrpc-server.php */ @@ -3961,7 +3961,7 @@ class wp_xmlrpc_server extends IXR_Server { } if ( ! current_user_can( 'edit_post', $post_id ) ) { - return new IXR_Error( 403, __( 'Sorry, you are not allowed access to details of this post.' ) ); + return new IXR_Error( 403, __( 'Sorry, you are not allowed to access details of this post.' ) ); } /** This action is documented in wp-includes/class-wp-xmlrpc-server.php */ @@ -4002,7 +4002,7 @@ class wp_xmlrpc_server extends IXR_Server { } if ( ! current_user_can( 'edit_posts' ) ) { - return new IXR_Error( 403, __( 'Sorry, you are not allowed access to details about this site.' ) ); + return new IXR_Error( 403, __( 'Sorry, you are not allowed to access details about this site.' ) ); } /** This action is documented in wp-includes/class-wp-xmlrpc-server.php */ @@ -4036,7 +4036,7 @@ class wp_xmlrpc_server extends IXR_Server { } if ( ! current_user_can( 'edit_pages' ) ) { - return new IXR_Error( 403, __( 'Sorry, you are not allowed access to details about this site.' ) ); + return new IXR_Error( 403, __( 'Sorry, you are not allowed to access details about this site.' ) ); } /** This action is documented in wp-includes/class-wp-xmlrpc-server.php */ @@ -4070,7 +4070,7 @@ class wp_xmlrpc_server extends IXR_Server { } if ( ! current_user_can( 'edit_pages' ) ) { - return new IXR_Error( 403, __( 'Sorry, you are not allowed access to details about this site.' ) ); + return new IXR_Error( 403, __( 'Sorry, you are not allowed to access details about this site.' ) ); } $templates = get_page_templates(); @@ -4331,7 +4331,7 @@ class wp_xmlrpc_server extends IXR_Server { } if ( ! current_user_can( 'edit_posts' ) ) { - return new IXR_Error( 403, __( 'Sorry, you are not allowed access to details about this site.' ) ); + return new IXR_Error( 403, __( 'Sorry, you are not allowed to access details about this site.' ) ); } /** This action is documented in wp-includes/class-wp-xmlrpc-server.php */ diff --git a/wp-includes/version.php b/wp-includes/version.php index d68f3f4f6a..942ba57ab5 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '5.0-alpha-42763'; +$wp_version = '5.0-alpha-42764'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.