Skip to content

Commit 779f739

Browse files
committed
Help for links pages. Props jorbin. see #13467
git-svn-id: https://develop.svn.wordpress.org/trunk@14909 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 6d50e25 commit 779f739

3 files changed

Lines changed: 37 additions & 1 deletion

File tree

wp-admin/edit-link-categories.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,18 @@
5151
if ( current_user_can('manage_categories') )
5252
wp_enqueue_script('inline-edit-tax');
5353

54+
add_contextual_help($current_screen, '<p>' . __('You can create groups of links by using link categories. Link category names must be unique and link categories are separate from the categories you use for posts.') . '</p>' .
55+
'<p>' . __('You can delete link categories, but that action does not delete the links within the category. Instead, it moves them to the default link category.') . '</p>' .
56+
'<p>'. __('For more information:').
57+
58+
'</p>
59+
<ul>
60+
<li>'.__( sprintf ('<a href="%1$s">%2$s</a>', 'http://codex.wordpress.org/Links_Link_Categories_SubPanel', 'Link Categories Documentation') ) .'</li>' .
61+
' <li>'.__( sprintf ('<a href="%1$s">%2$s</a>', 'http://wordpress.org/support/', 'Support Forums') ) .'</li>' .
62+
63+
'</ul>'
64+
);
65+
5466
require_once ('admin-header.php');
5567

5668
$messages[1] = __('Category added.');

wp-admin/edit-link-form.php

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,18 @@
3737
do_action('do_meta_boxes', 'link', 'advanced', $link);
3838
do_action('do_meta_boxes', 'link', 'side', $link);
3939

40-
add_contextual_help($current_screen, drag_drop_help());
40+
add_contextual_help($current_screen, '<p>' . __('You can add or edit links on this screen by entering information in each of the boxes. Only the link\'s web address and name (the text you want to display on your site as the link) are required fields.') . '</p>' .
41+
'<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\'t use in the Screen Options tab, or minimize boxes by clicking on the title bar of the box.') . '</p>' .
42+
'<p>' . __( sprintf('XFN stands for <a href="%s">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 site to which you are linking.', 'http://gmpg.org/xfn/' ) ) . '</p>' .
43+
'<p>'. __('For more information:').
44+
45+
'</p>
46+
<ul>
47+
<li>'.__( sprintf ('<a href="%1$s">%2$s</a>', 'http://codex.wordpress.org/Links_Add_New_SubPanel', 'Creating Links Documentation') ) .'</li>' .
48+
' <li>'.__( sprintf ('<a href="%1$s">%2$s</a>', 'http://wordpress.org/support/', 'Support Forums') ) .'</li>' .
49+
50+
'</ul>'
51+
);
4152

4253
require_once ('admin-header.php');
4354

wp-admin/link-manager.php

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,19 @@
4343

4444
$title = __('Links');
4545
$this_file = $parent_file = 'link-manager.php';
46+
47+
add_contextual_help( $current_screen, '<p>' . __('You can add links here to be displayed on your site, usually using Widgets [link to wp-admin/widgets.php]. By default, links to several sites in WordPress community are included as examples') . '</p>' .
48+
'<p>' . __('Links may be separated into categories; these are different than the categories used on your posts.') . '</p>' .
49+
'<p>' . __('You can customize the display of this screen using he Screen Options tab and/or the dropdown filters above the links table.') . '</p>' .
50+
'<p>' . __('If you delete a link, it will be removed permanently, as Links do not have a Trash function yet. ') . '</p>' .
51+
'<p>' . __('For more information:') . '</p>' .
52+
'<ul>
53+
<li>'.__( sprintf ('<a href="%1$s">%2$s</a>', 'http://codex.wordpress.org/Links_Edit_SubPanel', 'Link Management Documentation') ) .'</li>' .
54+
' <li>'.__( sprintf ('<a href="%1$s">%2$s</a>', 'http://wordpress.org/support/', 'Support Forums') ) .'</li>' .
55+
56+
'</ul>'
57+
);
58+
4659
include_once ('./admin-header.php');
4760

4861
if ( ! current_user_can('manage_links') )

0 commit comments

Comments
 (0)