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

git-svn-id: https://develop.svn.wordpress.org/trunk@22301 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin 2012-10-25 20:20:24 +00:00
parent ced3c54124
commit 208e916374
1 changed files with 2 additions and 1 deletions

View File

@ -192,7 +192,7 @@ function update_recently_edited( $file ) {
}
/**
* If siteurl or home changed, flush rewrite rules.
* If siteurl, home or page_on_front changed, flush rewrite rules.
*
* @since 2.1.0
*
@ -209,6 +209,7 @@ function update_home_siteurl( $old_value, $value ) {
add_action( 'update_option_home', 'update_home_siteurl', 10, 2 );
add_action( 'update_option_siteurl', 'update_home_siteurl', 10, 2 );
add_action( 'update_option_page_on_front', 'update_home_siteurl', 10, 2 );
/**
* Shorten an URL, to be used as link text