Plugin Directory

Changeset 1777043


Ignore:
Timestamp:
11/28/2017 03:34:58 PM (8 years ago)
Author:
flocsy
Message:

2.4.8 Include, Exclude can be: ID, slug, login

Location:
authors/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • authors/trunk/authors.php

    r1771926 r1777043  
    44Plugin URI: http://blog.fleischer.hu/wordpress/authors/
    55Description: Authors Widget shows the list or cloud of the authors, with the number of posts, link to RSS feed next to their name, avatar. It is useful in a multi-author blog, where you want to have the list in the sidemenu.
    6 Version: 2.4.7
     6Version: 2.4.8
    77Author: Gavriel Fleischer
    88Author URI: http://blog.fleischer.hu/author/gavriel/
     
    527527                    $val = trim($val, '"\'');
    528528                    $user = get_user_by( 'login', $val );
    529                     $include[$key] = $user->ID;
     529                    if (!$user) {
     530                        $user = get_user_by( 'slug', $val );
     531                    }
     532                    if ($user) {
     533                        $include[$key] = $user->ID;
     534                    }
    530535                }
    531536            }
     
    537542                    $val = trim($val, '"\'');
    538543                    $user = get_user_by( 'login', $val );
     544                    if (!$user) {
     545                        $user = get_user_by( 'slug', $val );
     546                    }
    539547                    if ($user) {
    540548                        $exclude[$key] = $user->ID;
  • authors/trunk/readme.txt

    r1771926 r1777043  
    8888
    8989== Changelog ==
     90
     91= 2.4.8 =
     92* Include, Exclude can be: ID, slug, login
    9093
    9194= 2.4.7 =
Note: See TracChangeset for help on using the changeset viewer.