[wp-trac] [WordPress Trac] #17912: WordPress not "realizing" that I'm an author on 404 error page

WordPress Trac wp-trac at lists.automattic.com
Mon Jun 27 20:46:36 UTC 2011


#17912: WordPress not "realizing" that I'm an author on 404 error page
-------------------------------+------------------------------
 Reporter:  itsalltech1        |       Owner:
     Type:  defect (bug)       |      Status:  new
 Priority:  normal             |   Milestone:  Awaiting Review
Component:  General            |     Version:  3.2
 Severity:  normal             |  Resolution:
 Keywords:  reporter-feedback  |
-------------------------------+------------------------------

Comment (by itsalltech1):

 <?php
 if ( is_user_logged_in() && !current_user_can('edit_post')) {?>
 <div id="settings">
                 <a href="#" class="button">
                     <span class="txt">
                     <div style="float:left;margin-right:5px">
    <?php global $userdata; get_currentuserinfo(); echo get_avatar(
 $userdata->ID, '16' ); ?>
 </div>
 <span style="float:left">
                     <?php global $current_user;
       get_currentuserinfo();

       echo $current_user->user_login . "\n";
 ?>
 </span>
                      </span>
                     <span class="ar">&#9660;</span>
                 </a>
                 <div class="menu">
                     <ul>
                         <li><a style="text-decoration:none" href="/wp-
 admin">Dashboard</a></li>
                         <li><a style="text-decoration:none" name="modal"
 href="#customize">Customize It's All Tech</a></li>
                         <li><a style="text-decoration:none" href="<?php
 echo wp_logout_url(); ?>">Logout of It's All Tech</a></li>
                     </ul>
                 </div>
             </div>
 <?php } ?>

 <?php
 if ( !is_user_logged_in() ) {?>
 <div id="settings">
                 <a href="#" class="button">
                     <span class="txt">
 <img alt="Default Gravatar"
 src="http://1.gravatar.com/avatar/fc3b93c1c99682dd85059c3d2674402f?s=32&d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D32&r=G&forcedefault=1"
 style="float:left;margin-right:5px;width:16px;height:16px"/>
 <span style="float:left">
                    Hello! New here?
 </span>
                      </span>
                     <span class="ar">&#9660;</span>
                 </a>
                 <div class="menu">
                     <ul>
                         <li><a style="text-decoration:none" href="/wp-
 login.php?action=register">Signup</a></li>
                         <li><a style="text-decoration:none" href="/wp-
 admin">Login to It's All Tech</a></li>
                         <li><a style="text-decoration:none" name="modal"
 href="#customize">Customize It's All Tech</a></li>
                     </ul>
                 </div>
             </div>
 <?php } ?>

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/17912#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list