Make WordPress Core

Ticket #22351: rewrite.php.patch

File rewrite.php.patch, 549 bytes (added by doublesharp, 13 years ago)

fixes "permalink_structure_changed" action

  • rewrite.php

     
    19401940         */
    19411941        function set_permalink_structure($permalink_structure) {
    19421942                if ( $permalink_structure != $this->permalink_structure ) {
     1943                        $old_permalink_structure = $this->permalink_structure;
    19431944                        update_option('permalink_structure', $permalink_structure);
    19441945                        $this->init();
    1945                         do_action('permalink_structure_changed', $this->permalink_structure, $permalink_structure);
     1946                        do_action('permalink_structure_changed', $old_permalink_structure, $permalink_structure);
    19461947                }
    19471948        }
    19481949