Docs: Correct $id
parameter type for old_slug_redirect_post_id
filter.
Props dlh. Fixes #43375. git-svn-id: https://develop.svn.wordpress.org/trunk@42722 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
afc8a07071
commit
36dd1e7735
@ -982,7 +982,7 @@ function wp_old_slug_redirect() {
|
||||
*
|
||||
* @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 );
|
||||
|
||||
@ -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.
|
||||
* @return int $id The Post ID.
|
||||
*/
|
||||
|
||||
function _find_post_by_old_date( $post_type ) {
|
||||
global $wpdb;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user