From 3eee635513266b76c38a8a9a35282fee86ba74b7 Mon Sep 17 00:00:00 2001 From: westi 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: http://svn.automattic.com/wordpress/trunk@7588 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- 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;