WordPress.org

Make WordPress Core

Opened 3 years ago

Last modified 4 months ago

#43366 new feature request

_default_wp_die_handler() Need filter code for update css style.

Reported by: 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 3 years ago.
I have added a filter function code
43366.patch (19.8 KB) - added by ravipatel 3 years ago.
43366.2.patch (388 bytes) - added by ravipatel 3 years ago.

Download all attachments as: .zip

Change History (8)

#1 @ravipatel
3 years ago

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

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

@ravipatel
3 years ago

I have added a filter function code

@ravipatel
3 years ago

@ravipatel
3 years ago

#2 @ravipatel
3 years ago

  • Severity changed from normal to major

#3 @ravipatel
23 months ago

  • Severity changed from major to normal

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

Last edited 23 months ago by ravipatel (previous) (diff)

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


11 months ago

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