plugin updates
This commit is contained in:
@@ -164,7 +164,7 @@ class WP_REST_Terms_Controller extends WP_REST_Controller {
|
||||
return true;
|
||||
}
|
||||
|
||||
// Otherwise grant access if the post is readable by the logged in user.
|
||||
// Otherwise grant access if the post is readable by the logged-in user.
|
||||
if ( current_user_can( 'read_post', $post->ID ) ) {
|
||||
return true;
|
||||
}
|
||||
@@ -462,7 +462,7 @@ class WP_REST_Terms_Controller extends WP_REST_Controller {
|
||||
* @since 4.7.0
|
||||
*
|
||||
* @param WP_REST_Request $request Full details about the request.
|
||||
* @return true|WP_Error True if the request has access to create items, false or WP_Error object otherwise.
|
||||
* @return bool|WP_Error True if the request has access to create items, otherwise false or WP_Error object.
|
||||
*/
|
||||
public function create_item_permissions_check( $request ) {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user