[wp-trac] [WordPress Trac] #10454: Add support for setting users_can_register option via XML-RPC and sanitize the option value

WordPress Trac wp-trac at lists.automattic.com
Tue Jul 21 21:02:42 UTC 2009


#10454: Add support for setting users_can_register option via XML-RPC and sanitize
the option value
-------------------------+--------------------------------------------------
 Reporter:  josephscott  |       Owner:  josephscott
     Type:  enhancement  |      Status:  new        
 Priority:  normal       |   Milestone:  2.9        
Component:  XML-RPC      |     Version:  2.8.1      
 Severity:  normal       |    Keywords:  has-patch  
-------------------------+--------------------------------------------------

Comment(by josephscott):

 Westi pointed out that there really is no reason not to use absint() here
 instead, since the two legal values we are talking about are zero and one.
 This new patch puts 'users_can_register' into the same case block for
 other absolute integers and replaces the abs((int) *) approach with a call
 to absint().

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


More information about the wp-trac mailing list