WordPress.org

Plugin Directory

Changeset 705244


Ignore:
Timestamp:
04/29/13 06:56:35 (5 years ago)
Author:
cnorris23
Message:

Final cleanup

Location:
edit-author-slug/tags/0.9.5
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • edit-author-slug/tags/0.9.5/edit-author-slug.php

    r695789 r705244  
    6565     * @var int Edit Author Slug DB Version 
    6666     */ 
    67     public $db_version = 132; 
     67    public $db_version = 158; 
    6868 
    6969    /** 
     
    237237 
    238238    // Pre-emptive courtesy flush in case of existing author base 
    239     add_action( 'init', 'ba_eas_delete_rewrite_rules', 999 ); 
     239    ba_eas_flush_rewrite_rules(); 
    240240} 
    241241 
     
    250250    do_action( 'ba_eas_deactivation' ); 
    251251 
     252 
    252253    // Courtesy flush 
    253     flush_rewrite_rules( false ); 
     254    delete_option( 'rewrite_rules' ); 
    254255} 
    255256 
  • edit-author-slug/tags/0.9.5/includes/admin-functions.php

    r695789 r705244  
    321321        if ( !empty( $ba_eas->author_base ) ) 
    322322            $wp_rewrite->author_base = $ba_eas->author_base; 
    323  
    324         // Courtesy flush 
    325         //flush_rewrite_rules( false ); 
    326323    } 
    327324 
    328325    // Courtesy flush 
    329     delete_option( 'rewrite_rules' ); 
     326    ba_eas_flush_rewrite_rules(); 
    330327 
    331328    return $author_base; 
     
    548545        return; 
    549546 
     547    if ( $ba_eas->current_db_version < 158 ) { 
     548        // Courtesy flush for those having issues 
     549        ba_eas_flush_rewrite_rules(); 
     550    } 
     551 
    550552    if ( $ba_eas->current_db_version < 132 ) { 
    551553        // Add new options 
  • edit-author-slug/tags/0.9.5/includes/general-functions.php

    r695789 r705244  
    203203 * @uses delete_option() To auto-update the nicename 
    204204 */ 
    205 function ba_eas_delete_rewrite_rules() { 
     205function ba_eas_flush_rewrite_rules() { 
    206206    delete_option( 'rewrite_rules' ); 
    207207} 
  • edit-author-slug/tags/0.9.5/readme.txt

    r695789 r705244  
    4343Make sure you are an admin, or have been assigned the `edit_users` or `edit_author_slug` capability. 
    4444 
     45= Why isn't my new Author Slug working? = 
     46 
     47While I've made every attempt to prevent this, I may have missed a spot or two. First things first, go to Settings > Permalinks and click "Save Changes." You don't need to actually need to make any changes for this to work. Hopefully, this should kick your new Author Slug into gear. 
     48 
     49If this doesn't work, make sure you don't have any slug conflicts from other posts/pages/plugins/permalink setting/etc. If you're still experiencing the issue, feel free to post a support request in the forums. 
     50 
    4551== Changelog == 
     52 
     53= 0.9.5 = 
     54* Fixed instances where the Author Base wouldn't change, or would result in a 404 
    4655 
    4756= 0.9.4 = 
Note: See TracChangeset for help on using the changeset viewer.