Make WordPress Core

Changeset 11325


Ignore:
Timestamp:
05/14/2009 06:38:34 AM (17 years ago)
Author:
westi
Message:

Add a permalink_structure_changed action to allow plugins to do something once the new structure has been applied to WP_Rewrite.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/rewrite.php

    r11102 r11325  
    18411841         * between the current permalink structure and the parameter value. Calls
    18421842         * {@link WP_Rewrite::init()} after the option is updated.
     1843         *
     1844         * Fires the 'permalink_structure_changed' action once the init call has
     1845         * processed passing the old and new values
    18431846         *
    18441847         * @since 1.5.0
    … …  
    18511854                        update_option('permalink_structure', $permalink_structure);
    18521855                        $this->init();
     1856                        do_action('permalink_structure_changed', $this->permalink_structure, $permalink_structure);
    18531857                }
    18541858        }
Note: See TracChangeset for help on using the changeset viewer.