Make WordPress Core


Ignore:
Timestamp:
06/03/2025 04:49:48 PM (11 months ago)
Author:
johnbillion
Message:

General: Various fixes to the correctness of code and documentation reported by PHPStan.

Props justlevine

See #63268

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/post.php

    r59962 r60275  
    21872187 * @param int $post_id Optional. Post ID.
    21882188 */
    2189 function redirect_post( $post_id = '' ) {
     2189function redirect_post( $post_id = 0 ) {
    21902190    if ( isset( $_POST['save'] ) || isset( $_POST['publish'] ) ) {
    21912191        $status = get_post_status( $post_id );
Note: See TracChangeset for help on using the changeset viewer.