| @@ 511-514 (lines=4) @@ | ||
| 508 | 'sql' => $sql |
|
| 509 | ); |
|
| 510 | ||
| 511 | if ( is_array( $orderby ) ) |
|
| 512 | $params = array_merge( $params, $orderby ); |
|
| 513 | elseif ( !empty( $orderby ) ) |
|
| 514 | $params[ 'orderby' ] = $orderby; |
|
| 515 | ||
| 516 | $params[ 'where' ] = trim( str_replace( $find, $replace, ' ' . $params[ 'where' ] ) ); |
|
| 517 | $params[ 'orderby' ] = trim( str_replace( $find, $replace, ' ' . $params[ 'orderby' ] ) ); |
|
| @@ 2180-2183 (lines=4) @@ | ||
| 2177 | 'type' => '' |
|
| 2178 | ); |
|
| 2179 | ||
| 2180 | if ( !empty( $params ) && is_array( $params ) ) |
|
| 2181 | $params = (object) array_merge( $defaults, $params ); |
|
| 2182 | else |
|
| 2183 | $params = (object) $defaults; |
|
| 2184 | ||
| 2185 | if ( !in_array( $action, array( 'manage', 'reorder' ) ) ) |
|
| 2186 | $action = 'manage'; |
|
| @@ 2308-2311 (lines=4) @@ | ||
| 2305 | 'type' => '' |
|
| 2306 | ); |
|
| 2307 | ||
| 2308 | if ( !empty( $params ) && is_array( $params ) ) |
|
| 2309 | $params = (object) array_merge( $defaults, $params ); |
|
| 2310 | else |
|
| 2311 | $params = (object) $defaults; |
|
| 2312 | ||
| 2313 | if ( !in_array( $action, array( 'manage', 'reorder' ) ) ) |
|
| 2314 | $action = 'manage'; |
|