|
@@ 1264-1273 (lines=10) @@
|
| 1261 |
|
// The args don't really make sense, and are inconsistently documented. |
| 1262 |
|
// These methods should give us the post object. |
| 1263 |
|
$args = array(); |
| 1264 |
|
if ( 'post_title' === $key ) { |
| 1265 |
|
$params['post_title'] = array( |
| 1266 |
|
'value' => $value, |
| 1267 |
|
'method_modify' => $method, |
| 1268 |
|
'method_read' => $methods['method_read'], |
| 1269 |
|
); |
| 1270 |
|
$args['name'] = sanitize_title( $value ); |
| 1271 |
|
} else { |
| 1272 |
|
$args[ $key ] = $value; |
| 1273 |
|
} |
| 1274 |
|
$args['post_type'] = $post_type; |
| 1275 |
|
$post_statuses = array( 'publish' ); |
| 1276 |
|
|
|
@@ 1590-1599 (lines=10) @@
|
| 1587 |
|
// The args don't really make sense, and are inconsistently documented. |
| 1588 |
|
// These methods should give us the post object. |
| 1589 |
|
$args = array(); |
| 1590 |
|
if ( 'post_title' === $key ) { |
| 1591 |
|
$params['post_title'] = array( |
| 1592 |
|
'value' => $value, |
| 1593 |
|
'method_modify' => $method, |
| 1594 |
|
'method_read' => $methods['method_read'], |
| 1595 |
|
); |
| 1596 |
|
$args['name'] = sanitize_title( $value ); |
| 1597 |
|
} else { |
| 1598 |
|
$args[ $key ] = $value; |
| 1599 |
|
} |
| 1600 |
|
$args['post_type'] = 'attachment'; |
| 1601 |
|
|
| 1602 |
|
// if we are trying to match to a meta field, the method is an object |