[wp-trac] [WordPress Trac] #39250: Undefinded Variable in Media-Modal

WordPress Trac noreply at wordpress.org
Fri Dec 16 06:20:41 UTC 2016


#39250: Undefinded Variable in Media-Modal
-------------------------------------------------+-------------------------
 Reporter:  arkonisus                            |       Owner:  dd32
     Type:  defect (bug)                         |      Status:  closed
 Priority:  normal                               |   Milestone:  4.7.1
Component:  Media                                |     Version:  4.7
 Severity:  normal                               |  Resolution:  fixed
 Keywords:  needs-patch needs-unit-tests good-   |     Focuses:  ui
  first-bug                                      |
-------------------------------------------------+-------------------------
Changes (by dd32):

 * owner:   => dd32
 * status:  reopened => closed
 * resolution:   => fixed


Comment:

 In [changeset:"39612"]:
 {{{
 #!CommitTicketReference repository="" revision="39612"
 Media: Move a variable definition outside of conditionals to ensure it's
 always available.
 This fixes cases where the URL to a PDF preview may be incorrectly
 calculated when no thumbnails were generated for the PDF (and avoids a PHP
 Notice at the same time).

 Fixes #39250.
 }}}

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


More information about the wp-trac mailing list