WordPress.org

Make WordPress Core

Changeset 38725


Ignore:
Timestamp:
10/04/2016 08:26:09 PM (3 years ago)
Author:
afercia
Message:

Accessibility: Remove target=_blank from the help tab links on several admin screens.

Stop taking control of users' browsers.

Props rianrietveld.
Fixes #38145. See #23432.

Location:
trunk/src/wp-admin
Files:
11 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/edit-form-advanced.php

    r38468 r38725  
    379379            '<p>' . sprintf(__('You can also create posts with the <a href="%s">Press This bookmarklet</a>.'), 'tools.php') . '</p>' .
    380380            '<p><strong>' . __('For more information:') . '</strong></p>' .
    381             '<p>' . __('<a href="https://codex.wordpress.org/Posts_Add_New_Screen" target="_blank">Documentation on Writing and Editing Posts</a>') . '</p>' .
    382             '<p>' . __('<a href="https://wordpress.org/support/" target="_blank">Support Forums</a>') . '</p>'
     381            '<p>' . __('<a href="https://codex.wordpress.org/Posts_Add_New_Screen">Documentation on Writing and Editing Posts</a>') . '</p>' .
     382            '<p>' . __('<a href="https://wordpress.org/support/">Support Forums</a>') . '</p>'
    383383    );
    384384} elseif ( 'page' == $post_type ) {
     
    394394    get_current_screen()->set_help_sidebar(
    395395            '<p><strong>' . __('For more information:') . '</strong></p>' .
    396             '<p>' . __('<a href="https://codex.wordpress.org/Pages_Add_New_Screen" target="_blank">Documentation on Adding New Pages</a>') . '</p>' .
    397             '<p>' . __('<a href="https://codex.wordpress.org/Pages_Screen#Editing_Individual_Pages" target="_blank">Documentation on Editing Pages</a>') . '</p>' .
    398             '<p>' . __('<a href="https://wordpress.org/support/" target="_blank">Support Forums</a>') . '</p>'
     396            '<p>' . __('<a href="https://codex.wordpress.org/Pages_Add_New_Screen">Documentation on Adding New Pages</a>') . '</p>' .
     397            '<p>' . __('<a href="https://codex.wordpress.org/Pages_Screen#Editing_Individual_Pages">Documentation on Editing Pages</a>') . '</p>' .
     398            '<p>' . __('<a href="https://wordpress.org/support/">Support Forums</a>') . '</p>'
    399399    );
    400400} elseif ( 'attachment' == $post_type ) {
     
    411411    get_current_screen()->set_help_sidebar(
    412412    '<p><strong>' . __('For more information:') . '</strong></p>' .
    413     '<p>' . __('<a href="https://codex.wordpress.org/Media_Add_New_Screen#Edit_Media" target="_blank">Documentation on Edit Media</a>') . '</p>' .
    414     '<p>' . __('<a href="https://wordpress.org/support/" target="_blank">Support Forums</a>') . '</p>'
     413    '<p>' . __('<a href="https://codex.wordpress.org/Media_Add_New_Screen#Edit_Media">Documentation on Edit Media</a>') . '</p>' .
     414    '<p>' . __('<a href="https://wordpress.org/support/">Support Forums</a>') . '</p>'
    415415    );
    416416}
  • trunk/src/wp-admin/edit-link-form.php

    r35158 r38725  
    5858    '<p>' . __( 'You can add or edit links on this screen by entering information in each of the boxes. Only the link&#8217;s web address and name (the text you want to display on your site as the link) are required fields.' ) . '</p>' .
    5959    '<p>' . __( 'The boxes for link name, web address, and description have fixed positions, while the others may be repositioned using drag and drop. You can also hide boxes you don&#8217;t use in the Screen Options tab, or minimize boxes by clicking on the title bar of the box.' ) . '</p>' .
    60     '<p>' . __( 'XFN stands for <a href="http://gmpg.org/xfn/" target="_blank">XHTML Friends Network</a>, which is optional. WordPress allows the generation of XFN attributes to show how you are related to the authors/owners of the site to which you are linking.' ) . '</p>'
     60    '<p>' . __( 'XFN stands for <a href="http://gmpg.org/xfn/">XHTML Friends Network</a>, which is optional. WordPress allows the generation of XFN attributes to show how you are related to the authors/owners of the site to which you are linking.' ) . '</p>'
    6161) );
    6262
    6363get_current_screen()->set_help_sidebar(
    6464    '<p><strong>' . __( 'For more information:' ) . '</strong></p>' .
    65     '<p>' . __( '<a href="https://codex.wordpress.org/Links_Add_New_Screen" target="_blank">Documentation on Creating Links</a>' ) . '</p>' .
    66     '<p>' . __( '<a href="https://wordpress.org/support/" target="_blank">Support Forums</a>' ) . '</p>'
     65    '<p>' . __( '<a href="https://codex.wordpress.org/Links_Add_New_Screen">Documentation on Creating Links</a>' ) . '</p>' .
     66    '<p>' . __( '<a href="https://wordpress.org/support/">Support Forums</a>' ) . '</p>'
    6767);
    6868
  • trunk/src/wp-admin/edit-tags.php

    r38698 r38725  
    300300
    301301    if ( 'category' == $taxonomy )
    302         $help .= '<p>' . __( '<a href="https://codex.wordpress.org/Posts_Categories_Screen" target="_blank">Documentation on Categories</a>' ) . '</p>';
     302        $help .= '<p>' . __( '<a href="https://codex.wordpress.org/Posts_Categories_Screen">Documentation on Categories</a>' ) . '</p>';
    303303    elseif ( 'link_category' == $taxonomy )
    304         $help .= '<p>' . __( '<a href="https://codex.wordpress.org/Links_Link_Categories_Screen" target="_blank">Documentation on Link Categories</a>' ) . '</p>';
     304        $help .= '<p>' . __( '<a href="https://codex.wordpress.org/Links_Link_Categories_Screen">Documentation on Link Categories</a>' ) . '</p>';
    305305    else
    306         $help .= '<p>' . __( '<a href="https://codex.wordpress.org/Posts_Tags_Screen" target="_blank">Documentation on Tags</a>' ) . '</p>';
    307 
    308     $help .= '<p>' . __('<a href="https://wordpress.org/support/" target="_blank">Support Forums</a>') . '</p>';
     306        $help .= '<p>' . __( '<a href="https://codex.wordpress.org/Posts_Tags_Screen">Documentation on Tags</a>' ) . '</p>';
     307
     308    $help .= '<p>' . __('<a href="https://wordpress.org/support/">Support Forums</a>') . '</p>';
    309309
    310310    get_current_screen()->set_help_sidebar( $help );
  • trunk/src/wp-admin/edit.php

    r38647 r38725  
    174174             * @param string $sendback The redirect URL.
    175175             * @param string $doaction The action being taken.
    176              * @param array  $post_ids The post IDs to take the action on. 
     176             * @param array  $post_ids The post IDs to take the action on.
    177177             */
    178178            $sendback = apply_filters( 'handle_bulk_actions-' . get_current_screen()->id, $sendback, $doaction, $post_ids );
     
    237237    get_current_screen()->set_help_sidebar(
    238238    '<p><strong>' . __('For more information:') . '</strong></p>' .
    239     '<p>' . __('<a href="https://codex.wordpress.org/Posts_Screen" target="_blank">Documentation on Managing Posts</a>') . '</p>' .
    240     '<p>' . __('<a href="https://wordpress.org/support/" target="_blank">Support Forums</a>') . '</p>'
     239    '<p>' . __('<a href="https://codex.wordpress.org/Posts_Screen">Documentation on Managing Posts</a>') . '</p>' .
     240    '<p>' . __('<a href="https://wordpress.org/support/">Support Forums</a>') . '</p>'
    241241    );
    242242
     
    258258    get_current_screen()->set_help_sidebar(
    259259    '<p><strong>' . __('For more information:') . '</strong></p>' .
    260     '<p>' . __('<a href="https://codex.wordpress.org/Pages_Screen" target="_blank">Documentation on Managing Pages</a>') . '</p>' .
    261     '<p>' . __('<a href="https://wordpress.org/support/" target="_blank">Support Forums</a>') . '</p>'
     260    '<p>' . __('<a href="https://codex.wordpress.org/Pages_Screen">Documentation on Managing Pages</a>') . '</p>' .
     261    '<p>' . __('<a href="https://wordpress.org/support/">Support Forums</a>') . '</p>'
    262262    );
    263263
  • trunk/src/wp-admin/export.php

    r37914 r38725  
    5252get_current_screen()->set_help_sidebar(
    5353    '<p><strong>' . __('For more information:') . '</strong></p>' .
    54     '<p>' . __('<a href="https://codex.wordpress.org/Tools_Export_Screen" target="_blank">Documentation on Export</a>') . '</p>' .
    55     '<p>' . __('<a href="https://wordpress.org/support/" target="_blank">Support Forums</a>') . '</p>'
     54    '<p>' . __('<a href="https://codex.wordpress.org/Tools_Export_Screen">Documentation on Export</a>') . '</p>' .
     55    '<p>' . __('<a href="https://wordpress.org/support/">Support Forums</a>') . '</p>'
    5656);
    5757
  • trunk/src/wp-admin/import.php

    r38075 r38725  
    2727get_current_screen()->set_help_sidebar(
    2828    '<p><strong>' . __('For more information:') . '</strong></p>' .
    29     '<p>' . __('<a href="https://codex.wordpress.org/Tools_Import_Screen" target="_blank">Documentation on Import</a>') . '</p>' .
    30     '<p>' . __('<a href="https://wordpress.org/support/" target="_blank">Support Forums</a>') . '</p>'
     29    '<p>' . __('<a href="https://codex.wordpress.org/Tools_Import_Screen">Documentation on Import</a>') . '</p>' .
     30    '<p>' . __('<a href="https://wordpress.org/support/">Support Forums</a>') . '</p>'
    3131);
    3232
  • trunk/src/wp-admin/index.php

    r37974 r38725  
    9696$screen->set_help_sidebar(
    9797    '<p><strong>' . __( 'For more information:' ) . '</strong></p>' .
    98     '<p>' . __( '<a href="https://codex.wordpress.org/Dashboard_Screen" target="_blank">Documentation on Dashboard</a>' ) . '</p>' .
    99     '<p>' . __( '<a href="https://wordpress.org/support/" target="_blank">Support Forums</a>' ) . '</p>'
     98    '<p>' . __( '<a href="https://codex.wordpress.org/Dashboard_Screen">Documentation on Dashboard</a>' ) . '</p>' .
     99    '<p>' . __( '<a href="https://wordpress.org/support/">Support Forums</a>' ) . '</p>'
    100100);
    101101
  • trunk/src/wp-admin/link-manager.php

    r38647 r38725  
    7575get_current_screen()->set_help_sidebar(
    7676    '<p><strong>' . __('For more information:') . '</strong></p>' .
    77     '<p>' . __('<a href="https://codex.wordpress.org/Links_Screen" target="_blank">Documentation on Managing Links</a>') . '</p>' .
    78     '<p>' . __('<a href="https://wordpress.org/support/" target="_blank">Support Forums</a>') . '</p>'
     77    '<p>' . __('<a href="https://codex.wordpress.org/Links_Screen">Documentation on Managing Links</a>') . '</p>' .
     78    '<p>' . __('<a href="https://wordpress.org/support/">Support Forums</a>') . '</p>'
    7979);
    8080
  • trunk/src/wp-admin/media-new.php

    r37914 r38725  
    5454get_current_screen()->set_help_sidebar(
    5555    '<p><strong>' . __('For more information:') . '</strong></p>' .
    56     '<p>' . __('<a href="https://codex.wordpress.org/Media_Add_New_Screen" target="_blank">Documentation on Uploading Media Files</a>') . '</p>' .
    57     '<p>' . __('<a href="https://wordpress.org/support/" target="_blank">Support Forums</a>') . '</p>'
     56    '<p>' . __('<a href="https://codex.wordpress.org/Media_Add_New_Screen">Documentation on Uploading Media Files</a>') . '</p>' .
     57    '<p>' . __('<a href="https://wordpress.org/support/">Support Forums</a>') . '</p>'
    5858);
    5959
  • trunk/src/wp-admin/media.php

    r37914 r38725  
    8181    get_current_screen()->set_help_sidebar(
    8282    '<p><strong>' . __('For more information:') . '</strong></p>' .
    83     '<p>' . __('<a href="https://codex.wordpress.org/Media_Add_New_Screen#Edit_Media" target="_blank">Documentation on Edit Media</a>') . '</p>' .
    84     '<p>' . __('<a href="https://wordpress.org/support/" target="_blank">Support Forums</a>') . '</p>'
     83    '<p>' . __('<a href="https://codex.wordpress.org/Media_Add_New_Screen#Edit_Media">Documentation on Edit Media</a>') . '</p>' .
     84    '<p>' . __('<a href="https://wordpress.org/support/">Support Forums</a>') . '</p>'
    8585    );
    8686
  • trunk/src/wp-admin/nav-menus.php

    r38672 r38725  
    568568get_current_screen()->set_help_sidebar(
    569569    '<p><strong>' . __('For more information:') . '</strong></p>' .
    570     '<p>' . __('<a href="https://codex.wordpress.org/Appearance_Menus_Screen" target="_blank">Documentation on Menus</a>') . '</p>' .
    571     '<p>' . __('<a href="https://wordpress.org/support/" target="_blank">Support Forums</a>') . '</p>'
     570    '<p>' . __('<a href="https://codex.wordpress.org/Appearance_Menus_Screen">Documentation on Menus</a>') . '</p>' .
     571    '<p>' . __('<a href="https://wordpress.org/support/">Support Forums</a>') . '</p>'
    572572);
    573573
Note: See TracChangeset for help on using the changeset viewer.