Editor API enhancement, first run (still needs some work), see #17144

git-svn-id: http://svn.automattic.com/wordpress/trunk@18498 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
azaozz
2011-08-03 10:19:00 +00:00
parent 230fb8f3e3
commit f634dd5af4
47 changed files with 2697 additions and 2082 deletions

View File

@@ -1110,8 +1110,6 @@ case 'menu-quick-search':
exit;
break;
case 'wp-link-ajax':
require_once ABSPATH . 'wp-admin/includes/internal-linking.php';
check_ajax_referer( 'internal-linking', '_ajax_linking_nonce' );
$args = array();
@@ -1120,7 +1118,8 @@ case 'wp-link-ajax':
$args['s'] = stripslashes( $_POST['search'] );
$args['pagenum'] = ! empty( $_POST['page'] ) ? absint( $_POST['page'] ) : 1;
$results = wp_link_query( $args );
require(ABSPATH . WPINC . '/class-wp-editor.php');
$results = WP_Editor::wp_link_query( $args );
if ( ! isset( $results ) )
die( '0' );