Make WordPress Core

Changeset 20566


Ignore:
Timestamp:
04/23/2012 09:41:50 PM (12 years ago)
Author:
ryan
Message:

Require the edit_posts capability for wp_getPostFormats.

Props maxcutler.
Fixes #20154

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/class-wp-xmlrpc-server.php

    r20469 r20566  
    29232923            return $this->error;
    29242924
     2925        if ( !current_user_can( 'edit_posts' ) )
     2926            return new IXR_Error( 403, __( 'You are not allowed access to details about this site.' ) );
     2927
    29252928        do_action( 'xmlrpc_call', 'wp.getPostFormats' );
    29262929
Note: See TracChangeset for help on using the changeset viewer.