Make WordPress Core


Ignore:
Timestamp:
01/17/2008 04:51:32 PM (17 years ago)
Author:
matt
Message:

Edit permalink in place. Fixes #5679. Hat tip: nbachiyski.

File:
1 edited

Legend:

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

    r6631 r6633  
    474474    update_usermeta($current_user->ID, 'closedpostboxes', $closed);
    475475break;
     476case 'sample-permalink':
     477    check_ajax_referer( $action );
     478    $post_id = isset($_POST['post_id'])? intval($_POST['post_id']) : 0;
     479    die(get_sample_permalink_html($post_id, $_POST['new_slug']));
     480break;
    476481default :
    477482    do_action( 'wp_ajax_' . $_POST['action'] );
Note: See TracChangeset for help on using the changeset viewer.