update_home_siteurl() – Flushes rewrite rules if siteurl, home or page_on_front changed.

You appear to be a bot. Output may be restricted

Description

Flushes rewrite rules if siteurl, home or page_on_front changed.

Usage

update_home_siteurl( $old_value, $value );

Parameters

$old_value
( string ) required
$value
( string ) required

Returns

void

Source

File name: wordpress/wp-admin/includes/misc.php
Lines:

1 to 11 of 11
function update_home_siteurl( $old_value, $value ) {
  if ( wp_installing() ) {
    return;
  }

  if ( is_multisite() && ms_is_switched() ) {
    delete_option( 'rewrite_rules' );
  } else {
    flush_rewrite_rules();
  }
}
 

 View on GitHub View on Trac