[wp-trac] [WordPress Trac] #39407: Twenty Fourteen fatals in WordPress < 4.0.0

WordPress Trac noreply at wordpress.org
Fri Jan 27 20:30:36 UTC 2017


#39407: Twenty Fourteen fatals in WordPress < 4.0.0
---------------------------+----------------------------
 Reporter:  n247s          |       Owner:  davidakennedy
     Type:  defect (bug)   |      Status:  closed
 Priority:  normal         |   Milestone:  4.8
Component:  Bundled Theme  |     Version:  4.5
 Severity:  normal         |  Resolution:  fixed
 Keywords:  has-patch      |     Focuses:
---------------------------+----------------------------
Changes (by davidakennedy):

 * owner:   => davidakennedy
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"40022"]:
 {{{
 #!CommitTicketReference repository="" revision="40022"
 Twenty Fourteen: Fix fatal errors in WordPress versions before 4.0.0

 The line of code throwing the error was introduced in WordPress 4.5 in
 r37040 "Customize: Require opt-in for selective refresh of widgets". Since
 `is_customize_preview()` was introduced in 4.0.0 and Twenty Fourteen
 should work from WordPress 3.6 and up, this caused the issue.

 The patch adds an `is_customize_preview` function if it's missing.

 Props adamsilverstein.

 Fixes #39407.
 }}}

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


More information about the wp-trac mailing list