mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-02 19:54:28 +00:00
TinyMCE, inline link:
- Remove proxying through WordPress to test if an URL exists. - Fix and enhance the regex that tests if the URL is well formed. Fixes #36638. git-svn-id: https://develop.svn.wordpress.org/trunk@38159 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -1065,7 +1065,7 @@ final class _WP_Editors {
|
||||
'Ctrl + letter:' => __( 'Ctrl + letter:' ),
|
||||
'Letter' => __( 'Letter' ),
|
||||
'Action' => __( 'Action' ),
|
||||
'Warning: the link has been inserted but the destination cannot be reached.' => __( 'Warning: the link has been inserted but the destination cannot be reached.' ),
|
||||
'Warning: the link has been inserted but may have errors. Please test it.' => __( 'Warning: the link has been inserted but may have errors. Please test it.' ),
|
||||
'To move focus to other buttons use Tab or the arrow keys. To return focus to the editor press Escape or use one of the buttons.' =>
|
||||
__( 'To move focus to other buttons use Tab or the arrow keys. To return focus to the editor press Escape or use one of the buttons.' ),
|
||||
'When starting a new paragraph with one of these formatting shortcuts followed by a space, the formatting will be applied automatically. Press Backspace or Escape to undo.' =>
|
||||
@@ -1286,13 +1286,7 @@ final class _WP_Editors {
|
||||
</script>
|
||||
<?php
|
||||
|
||||
$has_wplink = in_array( 'wplink', self::$plugins, true );
|
||||
|
||||
if ( $has_wplink ) {
|
||||
echo '<input type="hidden" id="_wplink_urltest_nonce" value="' . wp_create_nonce( 'wp-test-url' ) . '" />';
|
||||
}
|
||||
|
||||
if ( $has_wplink || in_array( 'link', self::$qt_buttons, true ) ) {
|
||||
if ( in_array( 'wplink', self::$plugins, true ) || in_array( 'link', self::$qt_buttons, true ) ) {
|
||||
self::wp_link_dialog();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user