WordPress.org

Plugin Directory

Changeset 557151


Ignore:
Timestamp:
06/13/12 08:37:30 (22 months ago)
Author:
cnorris23
Message:

Sorry for the delay folks. Its a good thing we checked those flaps, because they were definitely malfunctioning!

Location:
edit-author-slug/trunk
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • edit-author-slug/trunk/edit-author-slug.php

    r556059 r557151  
    1616 * Plugin URI: http://brandonallen.org/wordpress/plugins/edit-author-slug/ 
    1717 * Description: Allows an Admin (or capable user) to edit the author slug of a user, and change the Author Base. <em>i.e. - (WordPress default structure) http://example.com/author/username/ (Plugin allows) http://example.com/ninja/master-ninja/</em> 
    18  * Version: 0.9-RC1 
     18 * Version: 0.9-RC2 
    1919 * Tested With: 3.2.1, 3.3.2, 3.4 
    2020 * Author: Brandon Allen 
     
    4444 
    4545/** 
    46  * 
    47  * BA_Edit_Author_Slug is the class that handles ALL of the plugin functionality. 
    48  * It helps us avoid name collisions. 
    49  * http://codex.wordpress.org/Writing_a_Plugin#Avoiding_Function_Name_Collisions 
    50  */ 
    51 if ( ! class_exists( 'BA_Edit_Author_Slug' ) ) : 
    52  
    53 class BA_Edit_Author_Slug { 
     46 * Main Edit Author Slug class 
     47 */ 
     48if ( !class_exists( 'BA_Edit_Author_Slug' ) ) : 
     49 
     50final class BA_Edit_Author_Slug { 
    5451 
    5552    /** 
     
    5855     * @var string Edit Author Slug Version 
    5956     */ 
    60     public $version = '0.9-RC!'; 
     57    public $version = '0.9-RC2'; 
    6158 
    6259    /** 
  • edit-author-slug/trunk/includes/admin-functions.php

    r556059 r557151  
    99 * @author Brandon Allen 
    1010 */ 
     11 
     12// Exit if accessed directly 
     13if ( !defined( 'ABSPATH' ) ) exit; 
    1114 
    1215/** Nicename ******************************************************************/ 
     
    420423?> 
    421424 
    422     <p><?php _e( "Allow Author Slugs to be automatically update, and set the default Author Slug structure for users. Automatic updating will only occur when a user can't edit Author Slugs own their own.<br />**WARNING** This could have SEO repercussions if users update their profiles frequently, and it will override any manual editing of the Author Slug you may have previously done.", 'edit-author-slug' ); ?></p> 
     425    <p><?php _e( "Allow Author Slugs to be automatically update, and set the default Author Slug structure for users. Automatic updating will only occur when a user can't edit Author Slugs on their own.", 'edit-author-slug' ); ?> <br /><strong><em><?php _e( 'This could have SEO repercussions if users update their profiles frequently, and it will override any manual editing of the Author Slug you may have previously completed.', 'edit-author-slug' ); ?></em></strong></p> 
    423426 
    424427<?php 
  • edit-author-slug/trunk/includes/general-functions.php

    r556058 r557151  
    99 * @author Brandon Allen 
    1010 */ 
     11 
     12// Exit if accessed directly 
     13if ( !defined( 'ABSPATH' ) ) exit; 
    1114 
    1215/** Nicename ******************************************************************/ 
     
    155158    wp_cache_delete( $current_nicename, 'userslugs' ); 
    156159 
     160    // Add it back in case other plugins do some updating 
     161    remove_action( 'profile_update', 'ba_eas_auto_update_user_nicename_single' ); 
     162 
    157163    return $user_id; 
    158164} 
  • edit-author-slug/trunk/includes/hooks.php

    r550129 r557151  
    99 * @author Brandon Allen 
    1010 */ 
     11 
     12// Exit if accessed directly 
     13if ( !defined( 'ABSPATH' ) ) exit; 
    1114 
    1215// Admin 
     
    2124    add_action( 'user_profile_update_errors', 'ba_eas_update_user_nicename', 10, 3      ); 
    2225    add_action( 'admin_head',                 'ba_eas_show_user_nicename_scripts'       ); 
    23     add_action( 'profile_update',             'ba_eas_auto_update_user_nicename_single' ); 
    24     add_action( 'user_register',              'ba_eas_auto_update_user_nicename_single' ); 
    25  
    2626 
    2727    // Nicename column filters 
     
    3535} 
    3636 
     37// Nicename auto-update actions 
     38add_action( 'profile_update', 'ba_eas_auto_update_user_nicename_single' ); 
     39add_action( 'user_register',  'ba_eas_auto_update_user_nicename_single' ); 
     40 
    3741?> 
  • edit-author-slug/trunk/readme.txt

    r556059 r557151  
    5151* Allow Author Slug to be automatically created/updated based on a defined structure 
    5252* Switched to using the Settings API, which also means that all options moved to the Settings > Edit Author Slug page 
     53* Various code improvements/optimizations 
    5354 
    5455= 0.8.1 = 
  • edit-author-slug/trunk/uninstall.php

    r556058 r557151  
    1010 */ 
    1111 
    12 if ( ! defined( 'WP_UNINSTALL_PLUGIN') ) 
     12// Exit if accessed directly 
     13if ( !defined( 'ABSPATH' ) ) exit; 
     14 
     15// Make sure we're uninstalling 
     16if ( !defined( 'WP_UNINSTALL_PLUGIN') ) 
    1317    return false; 
    1418 
     19// Delete all the options 
    1520delete_option( '_ba_eas_author_base'           ); 
    1621delete_option( '_ba_eas_db_version'            ); 
Note: See TracChangeset for help on using the changeset viewer.