[wp-trac] [WordPress Trac] #39187: Twenty Seventeen version check fails on dev source of core

WordPress Trac noreply at wordpress.org
Thu Dec 8 16:30:22 UTC 2016


#39187: Twenty Seventeen version check fails on dev source of core
--------------------------+-----------------------------
 Reporter:  Rarst         |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Themes        |    Version:  4.7
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 This kill switch at starе of `functions.php` fails on dev checkout of
 core, stable 4.7 tag:

 {{{#!php
 <?php
 /**
  * Twenty Seventeen only works in WordPress 4.7 or later.
  */
 if ( version_compare( $GLOBALS['wp_version'], '4.7-alpha', '<' ) ) {
 }}}

 {{{#!php
 var_dump( $GLOBALS['wp_version'], version_compare( $GLOBALS['wp_version'],
 '4.7-alpha', '<' ) );
 // string(7) "4.7-src" bool(true)
 }}}


 Which further ends up as fatal error at my dev install, probably due to
 use of theme switcher plugin and kill switch being insufficiently
 foolproof. :)

--
Ticket URL: <https://core.trac.wordpress.org/ticket/39187>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list