Make WordPress Core

Changeset 13831


Ignore:
Timestamp:
03/26/2010 07:44:43 PM (14 years ago)
Author:
nacin
Message:

Remove references to wp-ajax.php. props TobiasBg, fixes #12400

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/general-template.php

    r13815 r13831  
    719719        return;
    720720
    721     $tag = $wp_query->get_queried_object();;
     721    $tag = $wp_query->get_queried_object();
    722722
    723723    if ( ! $tag )
  • trunk/wp-includes/link-template.php

    r13827 r13831  
    20392039
    20402040/**
    2041  * Prints the ajax url on the front end
    2042  *
    2043  * @since 3.0.0
    2044  **/
    2045 function _wp_ajaxurl() {
    2046     echo '<script type="text/javascript">',
    2047             "var ajaxurl = '", esc_js(site_url('wp-ajax.php')), "';",
    2048         "</script>\n";
    2049 }
    2050 
    2051 /**
    2052  * Hooks _wp_ajaxurl() to wp_head
    2053  *
    2054  * @since 3.0.0
    2055  **/
    2056 function wp_ajaxurl() {
    2057     add_action('wp_head', '_wp_ajaxurl', 1);
    2058 }
    2059 
    2060 /**
    20612041 * Return a shortlink for a post, page, attachment, or blog.
    20622042 *
  • trunk/wp-settings.php

    r13725 r13831  
    290290 * This hook is fired once WP, all plugins, and the theme are fully loaded and instantiated.
    291291 *
    292  * AJAX requests should use wp-ajax.php and wp-admin/admin-ajax.php instead.
     292 * AJAX requests should use wp-admin/admin-ajax.php. admin-ajax.php can handle requests for
     293 * users not logged in.
     294 *
     295 * @link http://codex.wordpress.org/AJAX_in_Plugins
    293296 *
    294297 * @since 3.0.0
Note: See TracChangeset for help on using the changeset viewer.