Make WordPress Core

Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#39187 closed defect (bug) (duplicate)

Twenty Seventeen version check fails on dev source of core

Reported by: Rarst Owned by:
Priority: normal Milestone:
Component: Themes Version: 4.7
Severity: normal Keywords:
Cc: Focuses:

Description

This kill switch at starе of functions.php fails on dev checkout of core, stable 4.7 tag:

<?php
/**
 * Twenty Seventeen only works in WordPress 4.7 or later.
 */
if ( version_compare( $GLOBALS['wp_version'], '4.7-alpha', '<' ) ) {
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. :)

Change History (3)

#2 @Rarst
10 years ago

  • Resolution → duplicate
  • Status new → closed

Duplicate of #38411.

Cheers, missed that one, closing as duplicate.

#3 @ocean90
10 years ago

  • Milestone Awaiting Review
Note: See TracTickets for help on using tickets.