| @@ 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); |
|
| @@ 1303-1304 (lines=2) @@ | ||
| 1300 | $args = func_get_args(); |
|
| 1301 | array_shift( $args ); |
|
| 1302 | // If args were passed as an array (as in vsprintf), move them up |
|
| 1303 | if ( isset( $args[0] ) && is_array($args[0]) ) |
|
| 1304 | $args = $args[0]; |
|
| 1305 | $query = str_replace( "'%s'", '%s', $query ); // in case someone mistakenly already singlequoted it |
|
| 1306 | $query = str_replace( '"%s"', '%s', $query ); // doublequote unquoting |
|
| 1307 | $query = preg_replace( '|(?<!%)%f|' , '%F', $query ); // Force floats to be locale unaware |
|