WordPress.org

Plugin Directory

Changeset 563846


Ignore:
Timestamp:
06/26/12 02:02:15 (22 months ago)
Author:
cnorris23
Message:

Quick fix for 0.9.2 and re-tag

Location:
edit-author-slug
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • edit-author-slug/tags/0.9.2/includes/admin-functions.php

    r563837 r563846  
    165165 
    166166        // Does this author slug already exist? 
    167         if ( (int) get_user_by( 'slug', $author_slug )->ID !== $user_id ) { 
     167        if ( get_user_by( 'slug', $author_slug ) && (int) get_user_by( 'slug', $author_slug )->ID !== $user_id ) { 
    168168            $errors->add( 'ba_edit_author_slug', sprintf( __( '<strong>ERROR</strong>: The author slug, %1$s, already exists. Please try something different.' ), '<strong><em>' . esc_attr( $author_slug ) . '</em></strong>' ) ); 
    169169            return; 
  • edit-author-slug/trunk/includes/admin-functions.php

    r563834 r563846  
    165165 
    166166        // Does this author slug already exist? 
    167         if ( (int) get_user_by( 'slug', $author_slug )->ID !== $user_id ) { 
     167        if ( get_user_by( 'slug', $author_slug ) && (int) get_user_by( 'slug', $author_slug )->ID !== $user_id ) { 
    168168            $errors->add( 'ba_edit_author_slug', sprintf( __( '<strong>ERROR</strong>: The author slug, %1$s, already exists. Please try something different.' ), '<strong><em>' . esc_attr( $author_slug ) . '</em></strong>' ) ); 
    169169            return; 
  • edit-author-slug/trunk/readme.txt

    r563842 r563846  
    44Requires at least: 3.2.1 
    55Tested up to: 3.4 
    6 Stable tag: 0.9.1 
     6Stable tag: 0.9.2 
    77 
    88Allows an admin (or capable user) to edit the author slug of a user, and change the author base. 
Note: See TracChangeset for help on using the changeset viewer.