mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-10-06 23:58:03 +00:00
TinyMCE: add inline link dialog
First run. Links the advanced button to the "old" dialog for now. See #33301. git-svn-id: https://develop.svn.wordpress.org/trunk@36384 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -1477,8 +1477,14 @@ function wp_ajax_wp_link_ajax() {
|
||||
|
||||
$args = array();
|
||||
|
||||
if ( isset( $_POST['search'] ) )
|
||||
if ( isset( $_POST['search'] ) ) {
|
||||
$args['s'] = wp_unslash( $_POST['search'] );
|
||||
}
|
||||
|
||||
if ( isset( $_POST['term'] ) ) {
|
||||
$args['s'] = wp_unslash( $_POST['term'] );
|
||||
}
|
||||
|
||||
$args['pagenum'] = ! empty( $_POST['page'] ) ? absint( $_POST['page'] ) : 1;
|
||||
|
||||
require(ABSPATH . WPINC . '/class-wp-editor.php');
|
||||
|
||||
Reference in New Issue
Block a user