WordPress.org

Make WordPress Core

Changeset 22301


Ignore:
Timestamp:
10/25/2012 08:20:24 PM (9 years ago)
Author:
nacin
Message:

Flush rewrite rules when page_on_front is updated. props SergeyBiryukov. fixes #21274.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/misc.php

    r22253 r22301  
    193193
    194194/**
    195  * If siteurl or home changed, flush rewrite rules.
     195 * If siteurl, home or page_on_front changed, flush rewrite rules.
    196196 *
    197197 * @since 2.1.0
     
    210210add_action( 'update_option_home', 'update_home_siteurl', 10, 2 );
    211211add_action( 'update_option_siteurl', 'update_home_siteurl', 10, 2 );
     212add_action( 'update_option_page_on_front', 'update_home_siteurl', 10, 2 );
    212213
    213214/**
Note: See TracChangeset for help on using the changeset viewer.