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
This commit is contained in:
westi 2008-04-02 16:18:11 +00:00
parent 29a551d786
commit 3eee635513
1 changed files with 1 additions and 1 deletions

View File

@ -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; // <permalink>/<int>/ is paged so we use the explicit attachment marker
else
$name = $object->post_name;