Make WordPress Core


Ignore:
Timestamp:
10/07/2012 03:44:30 AM (11 years ago)
Author:
nacin
Message:

Pass the screen context directly to get_sample_permalink_html(). see #16379.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/ajax-actions.php

    r22120 r22129  
    12991299    $title = isset($_POST['new_title'])? $_POST['new_title'] : '';
    13001300    $slug = isset($_POST['new_slug'])? $_POST['new_slug'] : null;
    1301     wp_die( get_sample_permalink_html( $post_id, $title, $slug ) );
     1301    $screen = isset( $_POST['screen'] ) ? $_POST['screen'] : 'post';
     1302    wp_die( get_sample_permalink_html( $post_id, $title, $slug, $screen ) );
    13021303}
    13031304
Note: See TracChangeset for help on using the changeset viewer.