WordPress.org

Make WordPress Core

Ticket #16986: getoptions.diff

File getoptions.diff, 583 bytes (added by nprasath002, 3 years ago)
  • (a) Base vs. (b) Locally

    # This patch file was generated by NetBeans IDE
    # It uses platform neutral UTF-8 encoding and \n newlines.
    a b  
    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 
     1428 No newline at end of file 
    14251429                // If no specific options where asked for, return all of them 
    14261430                if ( count( $options ) == 0 ) 
    14271431                        $options = array_keys($this->blog_options);