Skip to:
Content

bbPress.org

Changeset 3074


Ignore:
Timestamp:
05/01/2011 05:57:06 AM (15 years ago)
Author:
johnjamesjacoby
Message:

Flush rewrite rules when the admin settings page is saved

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/plugin/bbp-admin/bbp-settings.php

    r2818 r3074  
    158158 */
    159159function bbp_admin_setting_callback_slugs_section() {
    160 ?>
     160
     161    // Flush rewrite rules when this section is saved
     162    if ( isset( $_GET['settings-updated'] ) && isset( $_GET['page'] ) )
     163        flush_rewrite_rules(); ?>
    161164
    162165            <p><?php printf( __( 'If you like, you may enter custom structures for your forum, topic, reply, and tag URLs here. If you change any of these, all previous links will stop working. If you leave these empty the defaults will be used.', 'bbpress' ), get_admin_url( null, 'options-permalink.php' ) ); ?></p>
Note: See TracChangeset for help on using the changeset viewer.