Docs: Move the hook doc to once again directly precede the hook line for the getarchives_where
filter following [34686].
See #21596. Built from https://develop.svn.wordpress.org/trunk@34689 git-svn-id: http://core.svn.wordpress.org/trunk@34653 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
b69ef84a77
commit
1d86c9c1ed
@ -1440,6 +1440,8 @@ function wp_get_archives( $args = '' ) {
|
|||||||
$archive_week_end_date_format = get_option( 'date_format' );
|
$archive_week_end_date_format = get_option( 'date_format' );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$sql_where = $wpdb->prepare( "WHERE post_type = %s AND post_status = 'publish'", $r['post_type'] );
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Filter the SQL WHERE clause for retrieving archives.
|
* Filter the SQL WHERE clause for retrieving archives.
|
||||||
*
|
*
|
||||||
@ -1448,7 +1450,6 @@ function wp_get_archives( $args = '' ) {
|
|||||||
* @param string $sql_where Portion of SQL query containing the WHERE clause.
|
* @param string $sql_where Portion of SQL query containing the WHERE clause.
|
||||||
* @param array $r An array of default arguments.
|
* @param array $r An array of default arguments.
|
||||||
*/
|
*/
|
||||||
$sql_where = $wpdb->prepare( "WHERE post_type = %s AND post_status = 'publish'", $r['post_type'] );
|
|
||||||
$where = apply_filters( 'getarchives_where', $sql_where, $r );
|
$where = apply_filters( 'getarchives_where', $sql_where, $r );
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '4.4-alpha-34688';
|
$wp_version = '4.4-alpha-34689';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
Loading…
Reference in New Issue
Block a user