mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-05 16:08:12 +01:00
Docs: Correct $id
parameter type for old_slug_redirect_post_id
filter.
Props dlh. Fixes #43375. Built from https://develop.svn.wordpress.org/trunk@42722 git-svn-id: http://core.svn.wordpress.org/trunk@42552 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
e2717da1af
commit
c7c98dd7ea
@ -982,7 +982,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 );
|
||||||
|
|
||||||
@ -1064,7 +1064,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 = '5.0-alpha-42721';
|
$wp_version = '5.0-alpha-42722';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 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