mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-13 22:26:06 +01:00
Fix a misnamed variable, which caused the query-attachments ajax handler to ignore all input. see #21390.
git-svn-id: http://core.svn.wordpress.org/trunk@21682 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
75052955cc
commit
a54da100ce
@ -1829,8 +1829,8 @@ function wp_ajax_get_attachment() {
|
|||||||
* @since 3.5.0
|
* @since 3.5.0
|
||||||
*/
|
*/
|
||||||
function wp_ajax_query_attachments() {
|
function wp_ajax_query_attachments() {
|
||||||
$qvs = isset( $_REQUEST['query'] ) ? (array) $_REQUEST['query'] : array();
|
$query = isset( $_REQUEST['query'] ) ? (array) $_REQUEST['query'] : array();
|
||||||
$qvs = array_intersect_key( $qvs, array_flip( array( 's', 'order', 'orderby', 'posts_per_page', 'paged' ) ) );
|
$query = array_intersect_key( $query, array_flip( array( 's', 'order', 'orderby', 'posts_per_page', 'paged' ) ) );
|
||||||
|
|
||||||
$query['post_type'] = 'attachment';
|
$query['post_type'] = 'attachment';
|
||||||
$query['post_status'] = 'inherit';
|
$query['post_status'] = 'inherit';
|
||||||
|
Loading…
Reference in New Issue
Block a user