Make WordPress Core


Ignore:
Timestamp:
06/03/2003 12:08:51 AM (23 years ago)
Author:
mikelittle
Message:

Fixed admin level security problem.
Plus an user -> a user

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/b2edit.showposts.php

    r143 r149  
    236236                                <strong><?php the_time('Y/m/d @ H:i:s'); ?></strong> [ <a href="b2edit.php?p=<?php echo $id ?>&c=1"><?php comments_number('no comments', '1 comment', "% comments") ?></a>
    237237                                <?php
    238                                 if (($user_level > $authordata[13]) or ($user_login == $authordata[1])) {
     238                                if (($user_level > $authordata->user_level) or ($user_login == $authordata->user_login)) {
    239239                                echo " - <a href='b2edit.php?action=edit&amp;post=$id";
    240240                                if ($m)
    … …  
    275275                                        <?php comment_date('Y/m/d') ?> @ <?php comment_time() ?>
    276276                                        <?php
    277                                         if (($user_level > $authordata[13]) or ($user_login == $authordata[1])) {
     277                                        if (($user_level > $authordata->user_level) or ($user_login == $authordata->user_login)) {
    278278                                                echo "[ <a href=\"b2edit.php?action=editcomment&amp;comment=".$commentdata->comment_ID."\">Edit</a>";
    279279                                                echo " - <a href=\"b2edit.php?action=deletecomment&amp;p=".$post->ID."&amp;comment=".$commentdata->comment_ID."\">Delete</a> ]";
Note: See TracChangeset for help on using the changeset viewer.