Docs: Correct alphabetic order of parameters in `WP_Query::parse_query()` DocBlock.
See #48303. Built from https://develop.svn.wordpress.org/trunk@47052 git-svn-id: http://core.svn.wordpress.org/trunk@46852 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
80ce372761
commit
cef48881f0
|
@ -20,10 +20,6 @@ function render_block_core_rss( $attributes ) {
|
|||
}
|
||||
|
||||
if ( ! $rss->get_item_quantity() ) {
|
||||
// PHP 5.2 compatibility. See: http://simplepie.org/wiki/faq/i_m_getting_memory_leaks.
|
||||
$rss->__destruct();
|
||||
unset( $rss );
|
||||
|
||||
return '<div class="components-placeholder"><div class="notice notice-error">' . __( 'An error has occurred, which probably means the feed is down. Try again later.' ) . '</div></div>';
|
||||
}
|
||||
|
||||
|
@ -96,13 +92,7 @@ function render_block_core_rss( $attributes ) {
|
|||
$class .= ' ' . $attributes['className'];
|
||||
}
|
||||
|
||||
$list_items_markup = "<ul class='{$class}'>{$list_items}</ul>";
|
||||
|
||||
// PHP 5.2 compatibility. See: http://simplepie.org/wiki/faq/i_m_getting_memory_leaks.
|
||||
$rss->__destruct();
|
||||
unset( $rss );
|
||||
|
||||
return $list_items_markup;
|
||||
return "<ul class='{$class}'>{$list_items}</ul>";
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -25,6 +25,12 @@ function render_block_core_search( $attributes ) {
|
|||
$input_id,
|
||||
$attributes['label']
|
||||
);
|
||||
} else {
|
||||
$label_markup = sprintf(
|
||||
'<label for="%s" class="wp-block-search__label screen-reader-text">%s</label>',
|
||||
$input_id,
|
||||
__( 'Search' )
|
||||
);
|
||||
}
|
||||
|
||||
$input_markup = sprintf(
|
||||
|
@ -45,7 +51,6 @@ function render_block_core_search( $attributes ) {
|
|||
if ( isset( $attributes['className'] ) ) {
|
||||
$class .= ' ' . $attributes['className'];
|
||||
}
|
||||
|
||||
if ( isset( $attributes['align'] ) ) {
|
||||
$class .= ' align' . $attributes['align'];
|
||||
}
|
||||
|
|
|
@ -694,10 +694,11 @@ class WP_Query {
|
|||
* @type string $pagename Page slug.
|
||||
* @type string $perm Show posts if user has the appropriate capability.
|
||||
* @type string $ping_status Ping status.
|
||||
* @type array $post__in An array of post IDs to retrieve, sticky posts will be included
|
||||
* @type string $post_mime_type The mime type of the post. Used for 'attachment' post_type.
|
||||
* @type array $post__in An array of post IDs to retrieve, sticky posts will be included.
|
||||
* @type array $post__not_in An array of post IDs not to retrieve. Note: a string of comma-
|
||||
* separated IDs will NOT work.
|
||||
* @type string $post_mime_type The mime type of the post. Used for 'attachment' post_type.
|
||||
* @type array $post_name__in An array of post slugs that results must match.
|
||||
* @type int $post_parent Page ID to retrieve child pages for. Use 0 to only retrieve
|
||||
* top-level pages.
|
||||
* @type array $post_parent__in An array containing parent page IDs to query child pages from.
|
||||
|
@ -708,7 +709,6 @@ class WP_Query {
|
|||
* @type int $posts_per_page The number of posts to query for. Use -1 to request all posts.
|
||||
* @type int $posts_per_archive_page The number of posts to query for by archive page. Overrides
|
||||
* 'posts_per_page' when is_archive(), or is_search() are true.
|
||||
* @type array $post_name__in An array of post slugs that results must match.
|
||||
* @type string $s Search keyword(s). Prepending a term with a hyphen will
|
||||
* exclude posts matching that term. Eg, 'pillow -sofa' will
|
||||
* return posts containing 'pillow' but not 'sofa'. The
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '5.4-alpha-47051';
|
||||
$wp_version = '5.4-alpha-47052';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue