Skip to content

Commit 8a10fbf

Browse files
committed
chore: align $post_id param default value with doctype in redirect_post()
1 parent 6ff9ef7 commit 8a10fbf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/wp-admin/includes/post.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2186,7 +2186,7 @@ function wp_autosave( $post_data ) {
21862186
*
21872187
* @param int $post_id Optional. Post ID.
21882188
*/
2189-
function redirect_post( $post_id = '' ) {
2189+
function redirect_post( $post_id = 0 ) {
21902190
if ( isset( $_POST['save'] ) || isset( $_POST['publish'] ) ) {
21912191
$status = get_post_status( $post_id );
21922192

0 commit comments

Comments
 (0)