mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-14 22:00:23 +00:00
More cap migration.
git-svn-id: https://develop.svn.wordpress.org/trunk@2714 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -15,7 +15,7 @@ switch ($step) {
|
||||
case 0:
|
||||
{
|
||||
include_once('admin-header.php');
|
||||
if ($user_level < 5)
|
||||
if ( !current_user_can('manage_links') )
|
||||
die (__("Cheatin’ uh?"));
|
||||
|
||||
$opmltype = 'blogrolling'; // default.
|
||||
@@ -65,7 +65,7 @@ switch ($step) {
|
||||
|
||||
case 1: {
|
||||
include_once('admin-header.php');
|
||||
if ($user_level < 5)
|
||||
if ( !current_user_can('manage_links') )
|
||||
die (__("Cheatin' uh ?"));
|
||||
?>
|
||||
<div class="wrap">
|
||||
|
||||
Reference in New Issue
Block a user