Make WordPress Core

Ticket #46850: 46850.diff

File 46850.diff, 926 bytes (added by diddledani, 7 years ago)

patch to fix wrong number of parameters in delete_option() call

  • wp-includes/post.php

    diff --git a/wp-includes/post.php b/wp-includes/post.php
    index eb69ac727b..082f862e4d 100644
    a b function _reset_front_page_settings_for_post( $post_id ) { 
    29232923                        update_option( 'page_on_front', 0 );
    29242924                }
    29252925                if ( get_option( 'page_for_posts' ) == $post->ID ) {
    2926                         delete_option( 'page_for_posts', 0 );
     2926                        delete_option( 'page_for_posts' );
    29272927                }
    29282928        }
    29292929        unstick_post( $post->ID );