WordPress.org

Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #16974, comment 7


Ignore:
Timestamp:
03/26/11 18:33:39 (4 years ago)
Author:
scribu
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #16974, comment 7

    initial v1  
    11Yeah, it seems {{{intval()}}} is equivalent to using {{{(int)}}}, so nevermind. 
    22 
    3 You should be using is_integer(), not is_numeric(), since [http://www.php.net/manual/en/function.is-numeric.php is_numeric()] will also match floats and other representations. 
     3Note that [http://www.php.net/manual/en/function.is-numeric.php is_numeric()] will also match floats and other representations.