WordPress.org

Make WordPress Core

Changeset 1169 in tests


Ignore:
Timestamp:
12/14/12 20:47:42 (16 months ago)
Author:
kurtpayne
Message:

Version numbers like "1.1.1" aren't numeric. Instead, use version_compare to make sure they're greater than version 0.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/theme.php

    r970 r1169  
    103103            $this->assertTrue(!empty($theme['Description'])); 
    104104            $this->assertTrue(!empty($theme['Author'])); 
    105             $this->assertTrue(is_numeric($theme['Version'])); 
     105            $this->assertTrue(version_compare($theme['Version'], 0) > 0); 
    106106            $this->assertTrue(!empty($theme['Template'])); 
    107107            $this->assertTrue(!empty($theme['Stylesheet'])); 
Note: See TracChangeset for help on using the changeset viewer.