Docs: Correct $id parameter type for old_slug_redirect_post_id filter.
Props dlh. Merges [42722] to the 4.9 branch. Fixes #43375. Built from https://develop.svn.wordpress.org/branches/4.9@43026 git-svn-id: http://core.svn.wordpress.org/branches/4.9@42855 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
65a757621d
commit
13b6280373
|
@ -880,7 +880,7 @@ function wp_old_slug_redirect() {
|
||||||
*
|
*
|
||||||
* @since 4.9.3
|
* @since 4.9.3
|
||||||
*
|
*
|
||||||
* @param string $id The redirect post ID.
|
* @param int $id The redirect post ID.
|
||||||
*/
|
*/
|
||||||
$id = apply_filters( 'old_slug_redirect_post_id', $id );
|
$id = apply_filters( 'old_slug_redirect_post_id', $id );
|
||||||
|
|
||||||
|
@ -962,7 +962,6 @@ function _find_post_by_old_slug( $post_type ) {
|
||||||
* @param string $post_type The current post type based on the query vars.
|
* @param string $post_type The current post type based on the query vars.
|
||||||
* @return int $id The Post ID.
|
* @return int $id The Post ID.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
function _find_post_by_old_date( $post_type ) {
|
function _find_post_by_old_date( $post_type ) {
|
||||||
global $wpdb;
|
global $wpdb;
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '4.9.5';
|
$wp_version = '4.9.6-alpha-43026';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 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