X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/7c1a4aea7aeb083c7424823d11f24401edcba439..699231ae09f7057a4d0000cdf32e50a3df6a04ca:/wp-admin/edit-link-categories.php diff --git a/wp-admin/edit-link-categories.php b/wp-admin/edit-link-categories.php index 90dcce66..711121be 100644 --- a/wp-admin/edit-link-categories.php +++ b/wp-admin/edit-link-categories.php @@ -7,7 +7,7 @@ */ /** WordPress Administration Bootstrap */ -require_once('admin.php'); +require_once('./admin.php'); // Handle bulk actions if ( isset($_GET['action']) && isset($_GET['delete']) ) { @@ -40,7 +40,7 @@ if ( isset($_GET['action']) && isset($_GET['delete']) ) { wp_redirect($location); exit(); } -} elseif ( isset($_GET['_wp_http_referer']) && ! empty($_GET['_wp_http_referer']) ) { +} elseif ( ! empty($_GET['_wp_http_referer']) ) { wp_redirect( remove_query_arg( array('_wp_http_referer', '_wpnonce'), stripslashes($_SERVER['REQUEST_URI']) ) ); exit; } @@ -51,6 +51,13 @@ wp_enqueue_script('admin-categories'); if ( current_user_can('manage_categories') ) wp_enqueue_script('inline-edit-tax'); +add_contextual_help($current_screen, '

' . __('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.') . '

' . + '

' . __('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.') . '

' . + '

' . __('For more information:') . '

' . + '

' . __('Link Categories Documentation') . '

' . + '

' . __('Support Forums') . '

' +); + require_once ('admin-header.php'); $messages[1] = __('Category added.'); @@ -68,7 +75,7 @@ if ( isset($_GET['s']) && $_GET['s'] ) -

+

@@ -92,7 +99,7 @@ endif; ?> $pagenum = isset( $_GET['pagenum'] ) ? absint( $_GET['pagenum'] ) : 0; if ( empty($pagenum) ) $pagenum = 1; -if( ! isset( $catsperpage ) || $catsperpage < 0 ) +if ( ! isset( $catsperpage ) || $catsperpage < 0 ) $catsperpage = 20; $page_links = paginate_links( array( @@ -198,18 +205,18 @@ if ( $page_links )
- +
- +
- +

- +
- +

@@ -226,5 +233,5 @@ if ( $page_links ) - - + +