mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-16 14:50:29 +00:00
Massive user_level fix. We were still using the user_level field in wp_users in some places, where we should just use the table prefixed usermeta value.
git-svn-id: https://develop.svn.wordpress.org/trunk@2702 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -11,6 +11,7 @@ get_currentuserinfo();
|
||||
<h2><?php _e('Page Management'); ?></h2>
|
||||
|
||||
<?php
|
||||
/*
|
||||
if (isset($user_ID) && ('' != intval($user_ID))) {
|
||||
$posts = $wpdb->get_results("
|
||||
SELECT $wpdb->posts.*, $wpdb->users.user_level FROM $wpdb->posts
|
||||
@@ -18,9 +19,9 @@ if (isset($user_ID) && ('' != intval($user_ID))) {
|
||||
WHERE $wpdb->posts.post_status = 'static'
|
||||
AND ($wpdb->users.user_level < $user_level OR $wpdb->posts.post_author = $user_ID)
|
||||
");
|
||||
} else {
|
||||
} else { */
|
||||
$posts = $wpdb->get_results("SELECT * FROM $wpdb->posts WHERE post_status = 'static'");
|
||||
}
|
||||
// } FIXME
|
||||
|
||||
if ($posts) {
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user