From 414be415cd57893f3bd0d05749ed231899a6e75c Mon Sep 17 00:00:00 2001 From: Peter Westwood Date: Wed, 2 Apr 2008 16:18:11 +0000 Subject: [PATCH] Replace the last usage of ctype_digit with is_numeric. Fixes #6534 for trunk props mtekk. git-svn-id: https://develop.svn.wordpress.org/trunk@7588 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/link-template.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/link-template.php b/wp-includes/link-template.php index 23bfbf7fbc..8253c3c4b5 100644 --- a/wp-includes/link-template.php +++ b/wp-includes/link-template.php @@ -179,7 +179,7 @@ function get_attachment_link($id = false) { $parentlink = _get_page_link( $object->post_parent ); // Ignores page_on_front else $parentlink = get_permalink( $object->post_parent ); - if ( ctype_digit($object->post_name) || false !== strpos(get_option('permalink_structure'), '%category%') ) + if ( is_numeric($object->post_name) || false !== strpos(get_option('permalink_structure'), '%category%') ) $name = 'attachment/' . $object->post_name; // // is paged so we use the explicit attachment marker else $name = $object->post_name;