Ticket #12400: 12400-cleanup.patch
File 12400-cleanup.patch, 1.2 KB (added by , 15 years ago) |
---|
-
wp-includes/link-template.php
2038 2038 } 2039 2039 2040 2040 /** 2041 * Prints the ajax url on the front end2042 *2043 * @since 3.0.02044 **/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_head2053 *2054 * @since 3.0.02055 **/2056 function wp_ajaxurl() {2057 add_action('wp_head', '_wp_ajaxurl', 1);2058 }2059 2060 /**2061 2041 * Return a shortlink for a post, page, attachment, or blog. 2062 2042 * 2063 2043 * This function exists to provide a shortlink tag that all themes and plugins can target. A plugin must hook in to -
wp-settings.php
289 289 /** 290 290 * This hook is fired once WP, all plugins, and the theme are fully loaded and instantiated. 291 291 * 292 * AJAX requests should use wp-a jax.php and wp-admin/admin-ajax.php instead.292 * AJAX requests should use wp-admin/admin-ajax.php instead. 293 293 * 294 294 * @since 3.0.0 295 295 */