WordPress.org

Making WordPress.org

Changeset 2113


Ignore:
Timestamp:
11/22/2015 10:23:14 PM (4 years ago)
Author:
ocean90
Message:

Translate: Replace GP::$user->current()->id with is_user_logged_in() in new templates.

See #1352.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/translate.wordpress.org/public_html/gp-templates-new/locale-projects.php

    r2072 r2113  
    7979        <?php
    8080            $sorts = array();
    81             if ( GP::$user->current()->id && in_array( $project->slug, array( 'waiting', 'wp-themes', 'wp-plugins' ) ) ) {
     81            if ( is_user_logged_in() && in_array( $project->slug, array( 'waiting', 'wp-themes', 'wp-plugins' ) ) ) {
    8282                $sorts['special'] = 'Untranslated Favorites, Remaining Strings (Most first)';
    8383                $sorts['favorites'] = 'My Favorites';
Note: See TracChangeset for help on using the changeset viewer.