Make WordPress Core


Ignore:
Timestamp:
10/04/2016 08:26:09 PM (8 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.

File:
1 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}
Note: See TracChangeset for help on using the changeset viewer.