[wp-trac] [WordPress Trac] #21977: Allow 0, NULL and empty string values for 'parent'.

WordPress Trac noreply at wordpress.org
Wed Nov 7 21:50:33 UTC 2012


#21977: Allow 0, NULL and empty string values for 'parent'.
-----------------------------------------+------------------
 Reporter:  sam2kb                       |       Owner:
     Type:  defect (bug)                 |      Status:  new
 Priority:  normal                       |   Milestone:  3.5
Component:  XML-RPC                      |     Version:
 Severity:  normal                       |  Resolution:
 Keywords:  has-patch dev-feedback punt  |
-----------------------------------------+------------------

Comment (by westi):

 I'm not sure about this.

 By definition the datatype that should be passed here is a string
 containing an integer, this is the return value of ```get_term``` and the
 new/edit functions should expect the same.

 So ideally the correct value for parent is probably and empty string or
 '0' and all the tests should be updated to send numbers as strings.

 I'm not sure [UT1118] adds completely correct tests.

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


More information about the wp-trac mailing list