Make WordPress Core


Ignore:
Timestamp:
07/09/2005 01:27:46 AM (19 years ago)
Author:
matt
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/edit-page-form.php

    r2699 r2702  
    109109        <td><input name="post_name" type="text" size="25" id="post_name" value="<?php echo $post->post_name ?>" /></td>
    110110    </tr>
    111 <?php if ($user_level > 7 && $users = $wpdb->get_results("SELECT ID, user_login FROM $wpdb->users WHERE user_level <= $user_level AND user_level > 0") ) : ?>
     111<?php if ( $authors = get_editable_authors( $current_user->ID ) ) : // TODO: ROLE SYSTEM ?>
    112112    <tr>
    113113        <th scope="row" width="30%"><?php _e('Page owner'); ?>:</th>
     
    115115        <select name="post_author" id="post_author">
    116116        <?php
    117         foreach ($users as $o) :
     117        foreach ($authors as $o) :
    118118            $o = get_userdata( $o->ID );
    119119            if ( $post->post_author == $o->ID || ( empty($post_ID) && $user_ID == $o->ID ) ) $selected = 'selected="selected"';
Note: See TracChangeset for help on using the changeset viewer.