[wp-trac] [WordPress Trac] #20986: xmlrpc.php should return http 405 for get requests (and not 200)

WordPress Trac wp-trac at lists.automattic.com
Tue Jun 19 16:53:42 UTC 2012


#20986: xmlrpc.php should return http 405 for get requests (and not 200)
--------------------------+------------------------------
 Reporter:  rhertzog      |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  XML-RPC       |     Version:
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |
--------------------------+------------------------------

Comment (by nacin):

 > Maybe there should be a core API for this that is smarter, like found in
 load.php at L163-168?

 We have one — `status_header( 405 );` The logic in load.php is simply
 there because under maintenance mode, we have very little of WordPress
 loaded.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/20986#comment:5>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list