WordPress.org

Make WordPress Core

Ticket #11615: 11615.diff

File 11615.diff, 1.5 KB (added by nacin, 6 years ago)
  • includes/post.php

     
    504504        add_meta( $post_ID ); 
    505505 
    506506        // Reunite any orphaned attachments with their parent 
    507         if ( !$draft_ids = get_user_option( 'autosave_draft_ids' ) ) 
     507        if ( !$draft_ids = get_user_option( 'autosave_draft_ids', 0, false ) ) 
    508508                $draft_ids = array(); 
    509509        if ( $draft_temp_id = (int) array_search( $post_ID, $draft_ids ) ) 
    510510                _relocate_children( $draft_temp_id, $post_ID ); 
  • includes/template.php

     
    36743674                return ''; 
    36753675        } 
    36763676 
    3677         $screen_layout_columns = get_user_option("screen_layout_$screen"); 
     3677        $screen_layout_columns = get_user_option("screen_layout_$screen", 0, false); 
    36783678        $num = $columns[$screen]; 
    36793679 
    36803680        if ( ! $screen_layout_columns ) 
  • plugins.php

     
    2323 
    2424$plugin = isset($_REQUEST['plugin']) ? $_REQUEST['plugin'] : ''; 
    2525 
    26 $default_status = get_user_option('plugins_last_view'); 
     26$default_status = get_user_option('plugins_last_view', 0, false); 
    2727if ( empty($default_status) ) 
    2828        $default_status = 'all'; 
    2929$status = isset($_REQUEST['plugin_status']) ? $_REQUEST['plugin_status'] : $default_status;