WordPress.org

Make WordPress Core

Changeset 7589


Ignore:
Timestamp:
04/02/08 16:19:32 (6 years ago)
Author:
westi
Message:

Replace the last usage of ctype_digit with is_numeric. Fixes #6534 for 2.5.1 props mtekk.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.5/wp-includes/link-template.php

    r7531 r7589  
    180180        else 
    181181            $parentlink = get_permalink( $object->post_parent ); 
    182         if ( ctype_digit($object->post_name) || false !== strpos(get_option('permalink_structure'), '%category%') ) 
     182        if ( is_numeric($object->post_name) || false !== strpos(get_option('permalink_structure'), '%category%') ) 
    183183            $name = 'attachment/' . $object->post_name; // <permalink>/<int>/ is paged so we use the explicit attachment marker 
    184184        else 
Note: See TracChangeset for help on using the changeset viewer.