Make WordPress Core

Opened 7 years ago

Last modified 4 years ago

#43366 new feature request

_default_wp_die_handler() Need filter code for update css style.

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

Description

wp-includes\functions.php Line no 2768.

Attachments (3)

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

Download all attachments as: .zip

Change History (8)

#1 @ravipatel
7 years ago

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

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

@ravipatel
7 years ago

I have added a filter function code

@ravipatel
7 years ago

@ravipatel
7 years ago

#2 @ravipatel
7 years ago

  • Severity changed from normal to major

#3 @ravipatel
5 years ago

  • Severity changed from major to normal

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

Version 3, edited 5 years ago by ravipatel (previous) (next) (diff)

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


4 years ago

#5 @SergeyBiryukov
4 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.