Make WordPress Core

Opened 19 years ago

Closed 19 years ago

Last modified 4 years ago

#4434 closed enhancement (fixed)

Add id's to fieldsets in wp-admin/profile.php

Reported by: Otto42 Owned by: rob1n
Priority: high Milestone: 2.3
Component: Administration Version: 2.2
Severity: normal Keywords: has-patch
Cc: Focuses:

Description

Change this:

<fieldset>
<legend><?php _e('Update Your Password'); ?></legend>

to this:

<fieldset id='passwords'>
<legend><?php _e('Update Your Password'); ?></legend>

Reasoning: This would allow for a very simple plugin to do essentially the same thing that is given here:
​http://wordpress.com/blog/2007/06/07/how-strong-is-your-password/

All that would then be required of a plugin would be a hook to 'admin_head' to call wp_enqueue_script('jquery') and a hook to 'show_user_profile' to include the small amount of necessary html+javascript to do the password strength indicator.

Further suggestion: All fieldsets on profile.php should be given unique ID's.

Attachments (1)

4434.diff​ (1.5 KB ) - added by rob1n 19 years ago.

Download all attachments as: .zip

Change History (12)

#1 @Otto42
19 years ago

  • Summary Add id='passwords' to password fieldset in wp-admin/profile.php → Add id's to fieldsets in wp-admin/profile.php

#2 @rob1n
19 years ago

  • Milestone → 2.3 (trunk)
  • Owner changed from anonymous to rob1n
  • Status new → assigned

#3 @rob1n
19 years ago

  • Keywords has-patch added

#4 @rob1n
19 years ago

  • Resolution → fixed
  • Status assigned → closed

(In [5689]) Add ID's to profile edit form's fieldsets. fixes #4434

This ticket was mentioned in ​PR #3331 on ​WordPress/wordpress-develop by ​scruffian.


4 years ago
#5

This is an attempt at a backport of ​https://github.com/WordPress/gutenberg/pull/44334

The main part of this change is adding a new CSS file and I'm not sure how to do this - I'm guessing this comes from the packages, rather than me adding it manually.

@ockham any insight would be appreciated.

​ockham commented on ​PR #3331:


4 years ago
#6

This is an attempt at a backport of ​WordPress/gutenberg#44334

The main part of this change is adding a new CSS file and I'm not sure how to do this - I'm guessing this comes from the packages, rather than me adding it manually.

I think that's accurate; ​according to unpkg.com, the package currently contains files such as ​`common.css` or ​`theme.css` at root level, so I'd expect classic.css to show up there, too.

I'll be publishing a new round of npms for WP 6.1 Beta 2 later today, and since we've cherry-picked ​https://github.com/WordPress/gutenberg/pull/44334 to be included with it, we can check unpkg later to see if the file ended up there.

The ​path you're using to then locate the file in Core after a sync and build also matches where I'm seeing those other CSS files locally.

(To recap, we'll need to wait for packages to be published and synced before we can land this PR 😊 )

​ockham commented on ​PR #3331:


4 years ago
#8

I'll rebase so this will pick up classic.css, now that the ​sync PR has landed.

​ockham commented on ​PR #3331:


4 years ago
#9

Some more detail from ​https://github.com/WordPress/gutenberg/pull/44334's paper trail:

​https://github.com/WordPress/gutenberg/pull/43981 has testing instructions:

## Testing Instructions

  1. Switch to a classic theme that doesn't specify its own button styles (I'm using Canape)
  2. Check that button look broken in trunk
  3. Check out this PR
  4. Check that buttons now look correct:

https://i0.wp.com/user-images.githubusercontent.com/275961/189132961-78be0baf-63c2-40d6-9dd6-d8437b70f100.png

The styling was apparently originally removed by ​https://github.com/WordPress/gutenberg/pull/34180, which was ​merged into Gutenberg in June. This means that it likely made its way into Core with the ​first package sync for WP 6.1. Testing this now.

​ockham commented on ​PR #3331:


4 years ago
#10

The styling was apparently originally removed by ​WordPress/gutenberg#34180, which was ​merged into Gutenberg in June. This means that it likely made its way into Core with the ​first package sync for WP 6.1. Testing this now.

Confirming:

| Before 3b63a75108b7f6d5e9112c556285ab1bc80ddbcf | At 3b63a75108b7f6d5e9112c556285ab1bc80ddbcf |

|

| https://i0.wp.com/user-images.githubusercontent.com/96308/193116608-74e622bf-a848-428d-829c-2e1488e5087c.png | https://i0.wp.com/user-images.githubusercontent.com/96308/193117244-03ebb93c-c1df-4f8e-85ec-0ce672516cae.png |

Note: See TracTickets for help on using tickets.