[wp-trac] [WordPress Trac] #52606: Investigate why the media test group errors when run on its own

WordPress Trac noreply at wordpress.org
Mon Feb 22 18:53:25 UTC 2021


#52606: Investigate why the media test group errors when run on its own
------------------------------+-----------------------------
 Reporter:  johnbillion       |       Owner:  SergeyBiryukov
     Type:  defect (bug)      |      Status:  closed
 Priority:  normal            |   Milestone:  5.7
Component:  Media             |     Version:
 Severity:  normal            |  Resolution:  fixed
 Keywords:  needs-unit-tests  |     Focuses:
------------------------------+-----------------------------
Changes (by SergeyBiryukov):

 * owner:  (none) => SergeyBiryukov
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"50406" 50406]:
 {{{
 #!CommitTicketReference repository="" revision="50406"
 Media: Explicitly declare the `$pagenow` global in
 `wp_get_attachment_url()`.

 This avoids an "Undefined index" PHP notice in the function when running
 the `media` test group separately.

 Follow-up to [32342], [50156], [50164], [50393].

 Props johnbillion.
 Fixes #52606.
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/52606#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list