#33811 closed defect (bug) (fixed)
"Attribute content to" dropdown missing when deleting a user in network admin (multisite)
Reported by: | figureone | Owned by: | jeremyfelt |
---|---|---|---|
Milestone: | 4.3.1 | Priority: | normal |
Severity: | normal | Version: | 4.3 |
Component: | Networks and Sites | Keywords: | has-patch fixed-major |
Focuses: | multisite | Cc: |
Description (last modified by )
Changeset [32333] introduced a bug that removed the html select element from the rendered output. The cause is an early closing parenthesis to the _e() function.
https://core.trac.wordpress.org/changeset/32333/trunk/src/wp-admin/network/users.php
Simple fix in attached patch. Screenshots attached to illustrate.
/wp-admin/network/users.php
Attachments (3)
Change History (16)
#2
@
9 years ago
- Milestone changed from Awaiting Review to 4.4
- Owner set to jeremyfelt
- Status changed from new to accepted
- Version changed from trunk to 4.3
Hi @figureone, thanks for the report and the patch!
I'll alter it slightly as the "Attribute all content to:" does need to be contained in _e()
for translation.
#4
@
9 years ago
- Milestone changed from 4.4 to 4.3.1
33811.diff closes the translation and outputs the user dropdown on a new line.
I'm going to assign this to 4.3.1 as it breaks a process pretty badly.
#6
@
9 years ago
- Resolution fixed deleted
- Status changed from closed to reopened
Reopening for 4.3.1 consideration
#11
follow-up:
↓ 13
@
9 years ago
Hi,
This patch creates a bug, the former version was correct:
<?php echo __( 'Attribute all content to:' ) . "</label>\n" . $user_dropdown; ?></li>
The new version doesn't make sense since _e is a wrapper for echo and enclose only 'Attribute all content to:' and not the end of the statement:
<?php _e( 'Attribute all content to:' ) . "</label>\n" . $user_dropdown; ?></li>
A really correct version would be (cause commas are a bit faster):
<?php echo __( 'Attribute all content to:' ), "</label>\n", $user_dropdown; ?></li>
#13
in reply to:
↑ 11
@
9 years ago
Replying to tanguysauvin:
The new version doesn't make sense since _e is a wrapper for echo and enclose only 'Attribute all content to:' and not the end of the statement:
<?php _e( 'Attribute all content to:' ) . "</label>\n" . $user_dropdown; ?></li>
This was fixed in [34012].
Screenshot illustrating missing html select element.