[wp-trac] [WordPress Trac] #45203: Document all optional parameters as optional in add_image_size()
WordPress Trac
noreply at wordpress.org
Mon Nov 12 23:37:35 UTC 2018
#45203: Document all optional parameters as optional in add_image_size()
---------------------------------------------+-----------------------
Reporter: DrewAPicture | Owner: andrewza
Type: defect (bug) | Status: assigned
Priority: normal | Milestone: 5.1
Component: Media | Version:
Severity: normal | Resolution:
Keywords: good-first-bug has-patch commit | Focuses: docs
---------------------------------------------+-----------------------
Comment (by pento):
In [changeset:"43893" 43893]:
{{{
#!CommitTicketReference repository="" revision="43893"
Scripts: Fix a PHP error in admin-ajax calls.
When making an ajax request,
`wp_enqueue_registered_block_scripts_and_styles()` checked if `is_admin()`
was true before accessing `$current_screen`, rather than checking if
`$current_screen` was defined. This is usually fine, execept for in ajax
requests.
Props ocean90, foreverpinetree, pento.
See #45203.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/45203#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list