[wp-trac] [WordPress Trac] #60782: The method parameter is never used.

WordPress Trac noreply at wordpress.org
Fri Mar 15 11:03:30 UTC 2024


#60782: The method parameter is never used.
-------------------------+------------------------------
 Reporter:  patelmohip   |       Owner:  (none)
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  General      |     Version:
 Severity:  normal       |  Resolution:
 Keywords:               |     Focuses:
-------------------------+------------------------------

Comment (by mujuonly):

 +1

 Function defined at wp-admin/includes/misc.php #L558

 {{{#!php
 <?php
 /**
  * Flushes rewrite rules if siteurl, home or page_on_front changed.
  *
  * @since 2.1.0
  *
  * @param string $old_value
  * @param string $value
  */
 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();
         }
 }
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/60782#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list