Make WordPress Core

Changeset 6710


Ignore:
Timestamp:
02/02/2008 05:57:20 PM (16 years ago)
Author:
ryan
Message:

Add edit_page cap check. Props josephscott. see #5313

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.3/xmlrpc.php

    r6504 r6710  
    11971197            && ($content_struct["post_type"] == "page")
    11981198        ) {
     1199            if( !current_user_can( 'edit_page', $post_ID ) ) {
     1200                return(new IXR_Error(401, __("Sorry, you do not have the right to edit this page.")));
     1201            }
     1202
    11991203            $post_type = "page";
    12001204        }
Note: See TracChangeset for help on using the changeset viewer.