Flush rewrite rules when page_on_front is updated. props SergeyBiryukov. fixes #21274.
git-svn-id: http://core.svn.wordpress.org/trunk@22301 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
d08bf937de
commit
fac0ce8ec7
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue