Make WordPress Core


Ignore:
Timestamp:
07/26/2016 11:23:21 PM (8 years ago)
Author:
azaozz
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-editor.php

    r38126 r38159  
    10661066            'Letter' => __( 'Letter' ),
    10671067            'Action' => __( 'Action' ),
    1068             'Warning: the link has been inserted but the destination cannot be reached.' => __( 'Warning: the link has been inserted but the destination cannot be reached.' ),
     1068            '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.' ),
    10691069            '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.' =>
    10701070                __( '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.' ),
     
    12871287        <?php
    12881288
    1289         $has_wplink = in_array( 'wplink', self::$plugins, true );
    1290 
    1291         if ( $has_wplink ) {
    1292             echo '<input type="hidden" id="_wplink_urltest_nonce" value="' . wp_create_nonce( 'wp-test-url' ) . '" />';
    1293         }
    1294 
    1295         if ( $has_wplink || in_array( 'link', self::$qt_buttons, true ) ) {
     1289        if ( in_array( 'wplink', self::$plugins, true ) || in_array( 'link', self::$qt_buttons, true ) ) {
    12961290            self::wp_link_dialog();
    12971291        }
Note: See TracChangeset for help on using the changeset viewer.