Opened 6 years ago
Last modified 5 years ago
#50814 new defect (bug)
Success Message Displays on Failure to Update Site Address
| Reported by: | megabyterose | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | Awaiting Review |
| Component: | Networks and Sites | Version: | 5.4.2 |
| Severity: | normal | Keywords: | has-patch |
| Cc: | Focuses: | ui, administration, multisite |
Description
There's a misleading success message, "Site info updated" that displays on page refresh after you attempt to update an individual site's address to one that is already in use.
(I'll attach a screen recording of an example!)
Attachments (1)
Change History (5)
#1
@
6 years ago
For clarification on the example recording, 20041465.travsearch.com already existed within the network when I attempted to rename travsearch.com/20041465 to 20041465.travsearch.com. This is the example that made me discover the bug (the success message instead of an error).
This ticket was mentioned in PR #2310 on WordPress/wordpress-develop by metodiew.
5 years ago
#3
- Keywords has-patch added; needs-patch removed
Here I'm adding a new class for the dashboard notice class, as we have "notice" even if the update fails.
In addition to that adding a new check if update_blog_details() returns, as it's returning only false.
I guess the code would need some refactoring and we can place a few apply_filters() for future extendibility, but wanted to share the first version first.
Trac ticket: https://core.trac.wordpress.org/ticket/50814
#4
@
5 years ago
Hey hey, I've added a new pull request for this ticket and sharing the PR message here as well. Open to feedback for the approach!
Here I'm adding a new class for the dashboard notice class, as we have notice even if the update fails.
In addition to that adding a new check if update_blog_details() as it's returning only false.
I guess the code would need some refactoring and we can place a few apply_filters() for future extendibility, but wanted to share the first version first.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Screen recording of updating a site address to an already-existing address, which shows success message but should be an error message.