Make WordPress Core

Opened 9 years ago

Last modified 6 years ago

#43366 new feature request

_default_wp_die_handler() Need filter code for update css style.

Reported by: ravipatel Owned by:
Priority: normal Milestone: Awaiting Review
Component: Administration Version: 4.9.4
Severity: normal Keywords: reporter-feedback
Cc: Focuses:

Description

wp-includes\functions.php Line no 2768.

Attachments (3)

functions.php​ (175.9 KB ) - added by ravipatel 9 years ago.
I have added a filter function code
43366.patch​ (19.8 KB ) - added by ravipatel 9 years ago.
43366.2.patch​ (388 bytes ) - added by ravipatel 9 years ago.

Download all attachments as: .zip

Change History (8)

#1 @ravipatel
9 years ago

<?php apply_filters( 'wp_die_handler_css', true ); ?>

add code wp-includes\functions.php Line no 2884.

@ravipatel
9 years ago

I have added a filter function code

#2 @ravipatel
9 years ago

  • Severity normal → major

#3 @ravipatel
7 years ago

  • Severity major → normal

@ireneyoast / @sergey Please review this future based ticket and patch. Wordpress 5.2.0

Last edited 7 years ago by ravipatel (previous) (diff)

This ticket was mentioned in ​Slack in #core by ravi. ​View the logs.


6 years ago

#5 @SergeyBiryukov
6 years ago

  • Keywords reporter-feedback added

Hi there, thanks for the patch!

What would be a use case for this new filter?

It seems like this should be an action instead, something like wp_die_handler_head, outside of the <style> tag but still inside the <head> tag in _default_wp_die_handler(). That would provide more flexibility and would be consistent with other areas of core, specifically the wp_head, admin_head, and login_head actions.

Note: See TracTickets for help on using tickets.