Make WordPress Core


Ignore:
Timestamp:
09/10/2008 10:47:03 PM (16 years ago)
Author:
ryan
Message:

Inline editing. First cut. Props Aaron Harp. see #6815

File:
1 edited

Legend:

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

    r8754 r8857  
    1313 */
    1414define('DOING_AJAX', true);
     15define('WP_ADMIN', true);
    1516
    1617require_once('../wp-load.php');
     
    716717    die(get_sample_permalink_html($post_id, $title, $slug));
    717718break;
     719case 'inline-data':
     720    get_inline_data( explode(',', $_POST['posts']) );
     721    die();
     722break;
     723case 'inline-save':
     724    inline_save_row( $_POST );
     725    if ( 'page' == $_POST['post_type'] ) {
     726        $post = array();
     727        $post[] = get_post($_POST['post_ID']);
     728        page_rows( $post );
     729    } elseif ( 'post' == $_POST['post_type'] ) {
     730        $mode = $_POST['post_view'];
     731        $post = array();
     732        $post[] = get_post($_POST['post_ID']);
     733        post_rows($post);
     734    }
     735    die();
     736break;
    718737case 'meta-box-order':
    719738    check_ajax_referer( 'meta-box-order' );
Note: See TracChangeset for help on using the changeset viewer.