[wp-trac] [WordPress Trac] #43851: Network admin allows updating one site to have the same domain and path as another site.

WordPress Trac noreply at wordpress.org
Fri Jan 25 15:17:02 UTC 2019


#43851: Network admin allows updating one site to have the same domain and path as
another site.
--------------------------------+----------------------------------------
 Reporter:  giacocorsiglia      |       Owner:  (none)
     Type:  defect (bug)        |      Status:  closed
 Priority:  normal              |   Milestone:
Component:  Networks and Sites  |     Version:
 Severity:  normal              |  Resolution:  worksforme
 Keywords:                      |     Focuses:  administration, multisite
--------------------------------+----------------------------------------
Changes (by jeremyfelt):

 * status:  new => closed
 * version:  4.9.5 =>
 * resolution:   => worksforme
 * milestone:  Awaiting Review =>


Comment:

 Hi @giacocorsiglia, thanks for the ticket.

 This should be possible in the upcoming WordPress 5.1 release. The new
 `wp_update_site()` and `wp_insert_site()` functions call
 `wp_prepare_site_data()` which in turn fires a `wp_validate_site_data`
 action that allows developers to return an error before the site is added
 or changed. The history on that can be seen in #40364.

 I'm going to go ahead and close this as "worksforme" (even though it will
 still be a few weeks), but please feel free to reopen if this doesn't
 address the issue.

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


More information about the wp-trac mailing list