| @@ 2478-2481 (lines=4) @@ | ||
| 2475 | 'type' => '', |
|
| 2476 | ); |
|
| 2477 | ||
| 2478 | if ( ! empty( $params ) && is_array( $params ) ) { |
|
| 2479 | $params = (object) array_merge( $defaults, $params ); |
|
| 2480 | } else { |
|
| 2481 | $params = (object) $defaults; |
|
| 2482 | } |
|
| 2483 | ||
| 2484 | if ( ! in_array( $action, array( 'manage', 'reorder' ) ) ) { |
|
| @@ 2611-2614 (lines=4) @@ | ||
| 2608 | 'type' => '', |
|
| 2609 | ); |
|
| 2610 | ||
| 2611 | if ( ! empty( $params ) && is_array( $params ) ) { |
|
| 2612 | $params = (object) array_merge( $defaults, $params ); |
|
| 2613 | } else { |
|
| 2614 | $params = (object) $defaults; |
|
| 2615 | } |
|
| 2616 | ||
| 2617 | if ( ! in_array( $action, array( 'manage', 'reorder' ) ) ) { |
|
| @@ 568-571 (lines=4) @@ | ||
| 565 | 'sql' => $sql, |
|
| 566 | ); |
|
| 567 | ||
| 568 | if ( is_array( $orderby ) ) { |
|
| 569 | $params = array_merge( $params, $orderby ); |
|
| 570 | } elseif ( ! empty( $orderby ) ) { |
|
| 571 | $params['orderby'] = $orderby; |
|
| 572 | } |
|
| 573 | ||
| 574 | $params['where'] = trim( str_replace( $find, $replace, ' ' . $params['where'] ) ); |
|