WordPress.org

Make WordPress Core

Changeset 18777


Ignore:
Timestamp:
09/26/2011 08:40:31 AM (10 years ago)
Author:
westi
Message:

Only show 'About this version' menu item to logged in users.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/admin-bar.php

    r18776 r18777  
    8282    ) );
    8383
    84     // Add "About This Version" link
    85     $wp_admin_bar->add_menu( array(
    86         'parent' => 'wp-logo',
    87         'id'     => 'about',
    88         'title'  => __('About This Version'),
    89         'href'   => admin_url('about.php'),
    90     ) );
     84    if ( is_user_logged_in() ) {
     85        // Add "About This Version" link
     86        $wp_admin_bar->add_menu( array(
     87            'parent' => 'wp-logo',
     88            'id'     => 'about',
     89            'title'  => __('About This Version'),
     90            'href'   => admin_url('about.php'),
     91        ) );
     92    }
    9193
    9294    // Add codex link
Note: See TracChangeset for help on using the changeset viewer.