WordPress.org

Make WordPress Core

Ticket #21274: 21274.patch

File 21274.patch, 664 bytes (added by SergeyBiryukov, 9 years ago)
  • wp-admin/includes/misc.php

     
    192192}
    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
    198198 *
     
    209209
    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/**
    214215 * Shorten an URL, to be used as link text