Make WordPress Core

Changes between Version 1 and Version 2 of Ticket #29839, comment 35


Ignore:
Timestamp:
11/16/2014 03:35:33 PM (11 years ago)
Author:
theMikeD
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #29839, comment 35

    v1 v2  
    5656
    5757According to the PHP info ( http://php.net/manual/en/language.types.boolean.php ) this is done automatically when a var is used in boolean context (as this one is) but, like the `intval` done earlier, better safe right?
    58 
    59 Also, there's this block
    60 
    61 {{{
    62         if ( 'all' == $args['get'] ) {
    63                 $args['childless'] = 0;
    64                 $args['child_of'] = 0;
    65                 $args['hide_empty'] = 0;
    66                 $args['hierarchical'] = false;
    67                 $args['pad_counts'] = false;
    68         }
    69 
    70 }}}
    71 
    72 that does a mixture. Is it kosher to fix them all to be one or the other, or should that be a separate issue?