| @@ 141-143 (lines=3) @@ | ||
| 138 | ||
| 139 | //display this element |
|
| 140 | $this->has_children = ! empty( $children_elements[ $id ] ); |
|
| 141 | if ( isset( $args[0] ) && is_array( $args[0] ) ) { |
|
| 142 | $args[0]['has_children'] = $this->has_children; // Back-compat. |
|
| 143 | } |
|
| 144 | ||
| 145 | $cb_args = array_merge( array(&$output, $element, $depth), $args); |
|
| 146 | call_user_func_array(array($this, 'start_el'), $cb_args); |
|
| @@ 1288-1289 (lines=2) @@ | ||
| 1285 | $args = func_get_args(); |
|
| 1286 | array_shift( $args ); |
|
| 1287 | // If args were passed as an array (as in vsprintf), move them up |
|
| 1288 | if ( isset( $args[0] ) && is_array($args[0]) ) |
|
| 1289 | $args = $args[0]; |
|
| 1290 | $query = str_replace( "'%s'", '%s', $query ); // in case someone mistakenly already singlequoted it |
|
| 1291 | $query = str_replace( '"%s"', '%s', $query ); // doublequote unquoting |
|
| 1292 | $query = preg_replace( '|(?<!%)%f|' , '%F', $query ); // Force floats to be locale unaware |
|