Use ABSPATH because we can. props miqrogroove see #12411
git-svn-id: https://develop.svn.wordpress.org/trunk@13458 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
6e071efc20
commit
ddb16a0d4a
@ -19,7 +19,7 @@ $step = isset( $_POST['step'] ) ? $_POST['step'] : 0;
|
||||
|
||||
switch ($step) {
|
||||
case 0: {
|
||||
include_once('../admin-header.php');
|
||||
include_once( ABSPATH . '/wp-admin/admin-header.php' );
|
||||
if ( !current_user_can('manage_links') )
|
||||
wp_die(__('Cheatin’ uh?'));
|
||||
|
||||
@ -71,7 +71,7 @@ foreach ($categories as $category) {
|
||||
case 1: {
|
||||
check_admin_referer('import-bookmarks');
|
||||
|
||||
include_once('../admin-header.php');
|
||||
include_once( ABSPATH . '/wp-admin/admin-header.php' );
|
||||
if ( !current_user_can('manage_links') )
|
||||
wp_die(__('Cheatin’ uh?'));
|
||||
?>
|
||||
@ -108,7 +108,7 @@ foreach ($categories as $category) {
|
||||
}
|
||||
|
||||
/** Load OPML Parser */
|
||||
include_once('../link-parse-opml.php');
|
||||
include_once( ABSPATH . '/wp-admin/link-parse-opml.php' );
|
||||
|
||||
$link_count = count($names);
|
||||
for ( $i = 0; $i < $link_count; $i++ ) {
|
||||
|
Loading…
Reference in New Issue
Block a user