Make WordPress Core

Changeset 22398


Ignore:
Timestamp:
11/06/2012 12:41:33 PM (14 years ago)
Author:
duck_
Message:

Actually pass old permalink structure with permalink_structure_changed action

Props doublesharp. Fixes #22351.

File:
1 edited

Legend:

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

    r22365 r22398  
    19431943        function set_permalink_structure($permalink_structure) {
    19441944                if ( $permalink_structure != $this->permalink_structure ) {
     1945                        $old_permalink_structure = $this->permalink_structure;
    19451946                        update_option('permalink_structure', $permalink_structure);
    19461947                        $this->init();
    1947                         do_action('permalink_structure_changed', $this->permalink_structure, $permalink_structure);
     1948                        do_action('permalink_structure_changed', $old_permalink_structure, $permalink_structure);
    19481949                }
    19491950        }
Note: See TracChangeset for help on using the changeset viewer.