WordPress.org

Make WordPress Core

Ticket #16986: getoptions2.diff

File getoptions2.diff, 617 bytes (added by ericmann, 4 years ago)

Updated patch file to reference the file it's patching.

  • wp-includes/class-wp-xmlrpc-server.php

     
    14221422                if ( !$user = $this->login($username, $password) ) 
    14231423                        return $this->error; 
    14241424 
     1425                if ( !current_user_can( 'manage_options' ) ) 
     1426                        return new IXR_Error( 403, __( 'You are not allowed to update options.' ) ); 
     1427 
    14251428                // If no specific options where asked for, return all of them 
    14261429                if ( count( $options ) == 0 ) 
    14271430                        $options = array_keys($this->blog_options);