[wp-trac] [WordPress Trac] #45302: AJAX post but only got a 500 error - WP5.0 Beta 3
WordPress Trac
noreply at wordpress.org
Mon Nov 12 23:35:53 UTC 2018
#45302: AJAX post but only got a 500 error - WP5.0 Beta 3
------------------------------+------------------------
Reporter: foreverpinetree | Owner: pento
Type: defect (bug) | Status: reviewing
Priority: normal | Milestone: 5.0
Component: Editor | Version: 5.0
Severity: normal | Resolution:
Keywords: has-patch commit | Focuses:
------------------------------+------------------------
Comment (by pento):
I've tweaked [attachment:"45302.patch"] a little:
- Using the global `$current_screen`, as `get_current_screen()` isn't
available for front end.
- Applied the same fix to `wp_common_block_scripts_and_styles()`.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/45302#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list