WordPress.org

Make WordPress Core

Opened 5 years ago

Closed 4 years ago

#29008 closed enhancement (wontfix)

Add additional variables to the_password_form filter

Reported by: silb3r Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: Posts, Post Types Keywords:
Focuses: template Cc:
PR Number:

Description

This will vastly improve markup edits without resorting to str_replace().

Attachments (1)

additional_filter_variables_for_the_password_form.diff (553 bytes) - added by silb3r 5 years ago.
Additional filters for the_password_form filter

Download all attachments as: .zip

Change History (5)

@silb3r
5 years ago

Additional filters for the_password_form filter

#1 follow-up: @obenland
5 years ago

Hi silb3r, would you mind sharing you use case where you have to resort to str_replace()?

#2 in reply to: ↑ 1 @silb3r
5 years ago

Replying to obenland:

Hi silb3r, would you mind sharing you use case where you have to resort to str_replace()?

Use cases could be if you want to change the submit <input> into a <button> element or move the password <input> outside the <label> element.

...then again, perhaps the best solution is to move this markup out of PHP and into a template file.

Last edited 5 years ago by silb3r (previous) (diff)

#3 @obenland
5 years ago

  • Version trunk deleted

#4 @wonderboymusic
4 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to wontfix
  • Status changed from new to closed

No movement in a year - as far as I can tell, the ID that $label represents is arbitrary and doesn't have to be maintained in a new UI

Note: See TracTickets for help on using tickets.