WordPress.org

Make WordPress Core

Ticket #38145: 38145.patch

File 38145.patch, 14.4 KB (added by rianrietveld, 4 years ago)
  • wp-admin/edit-comments.php

     
    162162
    163163get_current_screen()->set_help_sidebar(
    164164        '<p><strong>' . __( 'For more information:' ) . '</strong></p>' .
    165         '<p>' . __( '<a href="https://codex.wordpress.org/Administration_Screens#Comments" target="_blank">Documentation on Comments</a>' ) . '</p>' .
    166         '<p>' . __( '<a href="https://codex.wordpress.org/Comment_Spam" target="_blank">Documentation on Comment Spam</a>' ) . '</p>' .
    167         '<p>' . __( '<a href="https://codex.wordpress.org/Keyboard_Shortcuts" target="_blank">Documentation on Keyboard Shortcuts</a>' ) . '</p>' .
    168         '<p>' . __( '<a href="https://wordpress.org/support/" target="_blank">Support Forums</a>' ) . '</p>'
     165        '<p>' . __( '<a href="https://codex.wordpress.org/Administration_Screens#Comments">Documentation on Comments</a>' ) . '</p>' .
     166        '<p>' . __( '<a href="https://codex.wordpress.org/Comment_Spam">Documentation on Comment Spam</a>' ) . '</p>' .
     167        '<p>' . __( '<a href="https://codex.wordpress.org/Keyboard_Shortcuts">Documentation on Keyboard Shortcuts</a>' ) . '</p>' .
     168        '<p>' . __( '<a href="https://wordpress.org/support/">Support Forums</a>' ) . '</p>'
    169169);
    170170
    171171get_current_screen()->set_screen_reader_content( array(
  • wp-admin/edit-form-advanced.php

     
    378378        get_current_screen()->set_help_sidebar(
    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 ) {
    385385        $about_pages = '<p>' . __('Pages are similar to posts in that they have a title, body text, and associated metadata, but they are different in that they are not part of the chronological blog stream, kind of like permanent posts. Pages are not categorized or tagged, but can have a hierarchy. You can nest pages under other pages by making one the &#8220;Parent&#8221; of the other, creating a group of pages.') . '</p>' .
     
    393393
    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 ) {
    401401        get_current_screen()->add_help_tab( array(
     
    410410
    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}
    417417
  • wp-admin/edit-link-form.php

     
    5757        'content' =>
    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
    6969require_once( ABSPATH . 'wp-admin/admin-header.php' );
  • wp-admin/edit-tags.php

     
    279279        $help = '<p><strong>' . __( 'For more information:' ) . '</strong></p>';
    280280
    281281        if ( 'category' == $taxonomy )
    282                 $help .= '<p>' . __( '<a href="https://codex.wordpress.org/Posts_Categories_Screen" target="_blank">Documentation on Categories</a>' ) . '</p>';
     282                $help .= '<p>' . __( '<a href="https://codex.wordpress.org/Posts_Categories_Screen">Documentation on Categories</a>' ) . '</p>';
    283283        elseif ( 'link_category' == $taxonomy )
    284                 $help .= '<p>' . __( '<a href="https://codex.wordpress.org/Links_Link_Categories_Screen" target="_blank">Documentation on Link Categories</a>' ) . '</p>';
     284                $help .= '<p>' . __( '<a href="https://codex.wordpress.org/Links_Link_Categories_Screen">Documentation on Link Categories</a>' ) . '</p>';
    285285        else
    286                 $help .= '<p>' . __( '<a href="https://codex.wordpress.org/Posts_Tags_Screen" target="_blank">Documentation on Tags</a>' ) . '</p>';
     286                $help .= '<p>' . __( '<a href="https://codex.wordpress.org/Posts_Tags_Screen">Documentation on Tags</a>' ) . '</p>';
    287287
    288         $help .= '<p>' . __('<a href="https://wordpress.org/support/" target="_blank">Support Forums</a>') . '</p>';
     288        $help .= '<p>' . __('<a href="https://wordpress.org/support/">Support Forums</a>') . '</p>';
    289289
    290290        get_current_screen()->set_help_sidebar( $help );
    291291
  • wp-admin/edit.php

     
    221221
    222222        get_current_screen()->set_help_sidebar(
    223223        '<p><strong>' . __('For more information:') . '</strong></p>' .
    224         '<p>' . __('<a href="https://codex.wordpress.org/Posts_Screen" target="_blank">Documentation on Managing Posts</a>') . '</p>' .
    225         '<p>' . __('<a href="https://wordpress.org/support/" target="_blank">Support Forums</a>') . '</p>'
     224        '<p>' . __('<a href="https://codex.wordpress.org/Posts_Screen">Documentation on Managing Posts</a>') . '</p>' .
     225        '<p>' . __('<a href="https://wordpress.org/support/">Support Forums</a>') . '</p>'
    226226        );
    227227
    228228} elseif ( 'page' == $post_type ) {
     
    242242
    243243        get_current_screen()->set_help_sidebar(
    244244        '<p><strong>' . __('For more information:') . '</strong></p>' .
    245         '<p>' . __('<a href="https://codex.wordpress.org/Pages_Screen" target="_blank">Documentation on Managing Pages</a>') . '</p>' .
    246         '<p>' . __('<a href="https://wordpress.org/support/" target="_blank">Support Forums</a>') . '</p>'
     245        '<p>' . __('<a href="https://codex.wordpress.org/Pages_Screen">Documentation on Managing Pages</a>') . '</p>' .
     246        '<p>' . __('<a href="https://wordpress.org/support/">Support Forums</a>') . '</p>'
    247247        );
    248248
    249249}
  • wp-admin/export.php

     
    5151
    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
    5858// If the 'download' URL parameter is set, a WXR export file is baked and returned.
  • wp-admin/import.php

     
    2626
    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
    3333if ( current_user_can( 'install_plugins' ) ) {
  • wp-admin/index.php

     
    9595
    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
    102102include( ABSPATH . 'wp-admin/admin-header.php' );
  • wp-admin/link-manager.php

     
    5757
    5858get_current_screen()->set_help_sidebar(
    5959        '<p><strong>' . __('For more information:') . '</strong></p>' .
    60         '<p>' . __('<a href="https://codex.wordpress.org/Links_Screen" target="_blank">Documentation on Managing Links</a>') . '</p>' .
    61         '<p>' . __('<a href="https://wordpress.org/support/" target="_blank">Support Forums</a>') . '</p>'
     60        '<p>' . __('<a href="https://codex.wordpress.org/Links_Screen">Documentation on Managing Links</a>') . '</p>' .
     61        '<p>' . __('<a href="https://wordpress.org/support/">Support Forums</a>') . '</p>'
    6262);
    6363
    6464get_current_screen()->set_screen_reader_content( array(
  • wp-admin/media-new.php

     
    5353) );
    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
    6060require_once( ABSPATH . 'wp-admin/admin-header.php' );
  • wp-admin/media.php

     
    8080
    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
    8787        require( ABSPATH . 'wp-admin/admin-header.php' );
  • wp-admin/nav-menus.php

     
    567567
    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
    574574// Get the admin header.