WordPress.org

Make WordPress Core

Ticket #16379: 16379.5.diff

File 16379.5.diff, 544 bytes (added by ryan, 19 months ago)

Quick fix for screen notice

  • wp-admin/includes/ajax-actions.php

     
    12981298        $post_id = isset($_POST['post_id'])? intval($_POST['post_id']) : 0; 
    12991299        $title = isset($_POST['new_title'])? $_POST['new_title'] : ''; 
    13001300        $slug = isset($_POST['new_slug'])? $_POST['new_slug'] : null; 
     1301        set_current_screen( 'post' ); 
    13011302        wp_die( get_sample_permalink_html( $post_id, $title, $slug ) ); 
    13021303} 
    13031304