Index: wordpress/wp-admin/includes/comment.php
===================================================================
--- wordpress/wp-admin/includes/comment.php	(revision 14666)
+++ wordpress/wp-admin/includes/comment.php	(working copy)
@@ -123,7 +123,7 @@
 		if ( empty($pending) )
 			return 0;
 		else
-			return absint($pending[0]['num_comments']);
+			return abs( (int)$pending[0]['num_comments']);
 	}
 
 	$pending_keyed = array();
@@ -134,7 +134,7 @@
 
 	if ( !empty($pending) )
 		foreach ( $pending as $pend )
-			$pending_keyed[$pend['comment_post_ID']] = absint($pend['num_comments']);
+			$pending_keyed[$pend['comment_post_ID']] = abs( (int)$pend['num_comments']);
 
 	return $pending_keyed;
 }
Index: wordpress/wp-admin/includes/nav-menu.php
===================================================================
--- wordpress/wp-admin/includes/nav-menu.php	(revision 14666)
+++ wordpress/wp-admin/includes/nav-menu.php	(working copy)
@@ -506,7 +506,7 @@
 
 	// paginate browsing for large numbers of post objects
 	$per_page = 50;
-	$pagenum = isset( $_REQUEST[$post_type_name . '-tab'] ) && isset( $_REQUEST['paged'] ) ? absint( $_REQUEST['paged'] ) : 1;
+	$pagenum = isset( $_REQUEST[$post_type_name . '-tab'] ) && isset( $_REQUEST['paged'] ) ? abs( (int) $_REQUEST['paged'] ) : 1;
 	$offset = 0 < $pagenum ? $per_page * ( $pagenum - 1 ) : 0;
 
 	$args = array(
@@ -696,7 +696,7 @@
 	
 	// paginate browsing for large numbers of objects
 	$per_page = 50;
-	$pagenum = isset( $_REQUEST[$taxonomy_name . '-tab'] ) && isset( $_REQUEST['paged'] ) ? absint( $_REQUEST['paged'] ) : 1;
+	$pagenum = isset( $_REQUEST[$taxonomy_name . '-tab'] ) && isset( $_REQUEST['paged'] ) ? abs( (int) $_REQUEST['paged'] ) : 1;
 	$offset = 0 < $pagenum ? $per_page * ( $pagenum - 1 ) : 0;
 
 	$args = array(
Index: wordpress/wp-admin/includes/template.php
===================================================================
--- wordpress/wp-admin/includes/template.php	(revision 14666)
+++ wordpress/wp-admin/includes/template.php	(working copy)
@@ -137,7 +137,7 @@
 		switch ($column_name) {
 			case 'cb':
 				$output .= "<th scope='row' class='check-column'>";
-				if ( absint( get_option( 'default_link_category' ) ) != $category->term_id ) {
+				if ( abs( (int) get_option( 'default_link_category' ) ) != $category->term_id ) {
 					$output .= "<input type='checkbox' name='delete[]' value='$category->term_id' />";
 				} else {
 					$output .= "&nbsp;";
Index: wordpress/wp-admin/admin-ajax.php
===================================================================
--- wordpress/wp-admin/admin-ajax.php	(revision 14666)
+++ wordpress/wp-admin/admin-ajax.php	(working copy)
@@ -745,7 +745,7 @@
 	if ( '' == $comment_content )
 		die( __('Error: please type a comment.') );
 
-	$comment_parent = absint($_POST['comment_ID']);
+	$comment_parent = abs( (int)$_POST['comment_ID']);
 	$commentdata = compact('comment_post_ID', 'comment_author', 'comment_author_email', 'comment_author_url', 'comment_content', 'comment_type', 'comment_parent', 'user_ID');
 
 	$comment_id = wp_new_comment( $commentdata );
Index: wordpress/wp-admin/comment.php
===================================================================
--- wordpress/wp-admin/comment.php	(revision 14666)
+++ wordpress/wp-admin/comment.php	(working copy)
@@ -48,7 +48,7 @@
 	wp_enqueue_script('comment');
 	require_once('./admin-header.php');
 
-	$comment_id = absint( $_GET['c'] );
+	$comment_id = abs( (int) $_GET['c'] );
 
 	if ( !$comment = get_comment( $comment_id ) )
 		comment_footer_die( __('Oops, no comment with this ID.') . sprintf(' <a href="%s">'.__('Go back').'</a>!', 'javascript:history.go(-1)') );
@@ -70,7 +70,7 @@
 case 'trash'   :
 case 'spam'    :
 
-	$comment_id = absint( $_GET['c'] );
+	$comment_id = abs( (int) $_GET['c'] );
 
 	if ( !$comment = get_comment_to_edit( $comment_id ) ) {
 		wp_redirect( admin_url('edit-comments.php?error=1') );
@@ -194,7 +194,7 @@
 case 'unspamcomment'    :
 case 'approvecomment'   :
 case 'unapprovecomment' :
-	$comment_id = absint( $_REQUEST['c'] );
+	$comment_id = abs( (int) $_REQUEST['c'] );
 
 	if ( in_array( $action, array( 'approvecomment', 'unapprovecomment' ) ) )
 		check_admin_referer( 'approve-comment_' . $comment_id );
@@ -213,7 +213,7 @@
 	elseif ( '' != wp_get_original_referer() && ! $noredir )
 		$redir = wp_get_original_referer();
 	elseif ( in_array( $action, array( 'approvecomment', 'unapprovecomment' ) ) )
-		$redir = admin_url('edit-comments.php?p=' . absint( $comment->comment_post_ID ) );
+		$redir = admin_url('edit-comments.php?p=' . abs( (int) $comment->comment_post_ID ) );
 	else
 		$redir = admin_url('edit-comments.php');
 
@@ -256,8 +256,8 @@
 
 case 'editedcomment' :
 
-	$comment_id = absint( $_POST['comment_ID'] );
-	$comment_post_id = absint( $_POST['comment_post_ID'] );
+	$comment_id = abs( (int) $_POST['comment_ID'] );
+	$comment_post_id = abs( (int) $_POST['comment_post_ID'] );
 
 	check_admin_referer( 'update-comment_' . $comment_id );
 
Index: wordpress/wp-admin/edit-comments.php
===================================================================
--- wordpress/wp-admin/edit-comments.php	(revision 14666)
+++ wordpress/wp-admin/edit-comments.php	(working copy)
@@ -223,7 +223,7 @@
 		continue;
 	$link = add_query_arg( 'comment_status', $status, $link );
 	if ( $post_id )
-		$link = add_query_arg( 'p', absint( $post_id ), $link );
+		$link = add_query_arg( 'p', abs( (int) $post_id ), $link );
 	/*
 	// I toyed with this, but decided against it. Leaving it in here in case anyone thinks it is a good idea. ~ Mark
 	if ( !empty( $_GET['s'] ) )
@@ -352,7 +352,7 @@
 <input type="submit" id="post-query-submit" value="<?php esc_attr_e('Filter'); ?>" class="button-secondary" />
 
 <?php if ( isset($_GET['apage']) ) { ?>
-	<input type="hidden" name="apage" value="<?php echo esc_attr( absint( $_GET['apage'] ) ); ?>" />
+	<input type="hidden" name="apage" value="<?php echo esc_attr( abs( (int) $_GET['apage'] ) ); ?>" />
 <?php }
 
 if ( ( 'spam' == $comment_status || 'trash' == $comment_status) && current_user_can ('moderate_comments') ) {
Index: wordpress/wp-admin/edit-form-advanced.php
===================================================================
--- wordpress/wp-admin/edit-form-advanced.php	(revision 14666)
+++ wordpress/wp-admin/edit-form-advanced.php	(working copy)
@@ -66,7 +66,7 @@
 
 $message = false;
 if ( isset($_GET['message']) ) {
-	$_GET['message'] = absint( $_GET['message'] );
+	$_GET['message'] = abs( (int) $_GET['message'] );
 	if ( isset($messages[$post_type][$_GET['message']]) )
 		$message = $messages[$post_type][$_GET['message']];
 	elseif ( !isset($messages[$post_type]) && isset($messages['post'][$_GET['message']]) )
Index: wordpress/wp-admin/edit-link-categories.php
===================================================================
--- wordpress/wp-admin/edit-link-categories.php	(revision 14666)
+++ wordpress/wp-admin/edit-link-categories.php	(working copy)
@@ -89,7 +89,7 @@
 <div class="tablenav">
 
 <?php
-$pagenum = isset( $_GET['pagenum'] ) ? absint( $_GET['pagenum'] ) : 0;
+$pagenum = isset( $_GET['pagenum'] ) ? abs( (int) $_GET['pagenum'] ) : 0;
 if ( empty($pagenum) )
 	$pagenum = 1;
 if ( ! isset( $catsperpage ) || $catsperpage < 0 )
Index: wordpress/wp-admin/edit-tags.php
===================================================================
--- wordpress/wp-admin/edit-tags.php	(revision 14666)
+++ wordpress/wp-admin/edit-tags.php	(working copy)
@@ -208,7 +208,7 @@
 <input type="hidden" name="post_type" value="<?php echo esc_attr($post_type); ?>" />
 <div class="tablenav">
 <?php
-$pagenum = isset( $_GET['pagenum'] ) ? absint( $_GET['pagenum'] ) : 0;
+$pagenum = isset( $_GET['pagenum'] ) ? abs( (int) $_GET['pagenum'] ) : 0;
 if ( empty($pagenum) )
 	$pagenum = 1;
 
Index: wordpress/wp-admin/edit.php
===================================================================
--- wordpress/wp-admin/edit.php	(revision 14666)
+++ wordpress/wp-admin/edit.php	(working copy)
@@ -40,7 +40,7 @@
 	$post_new_file = 'post-new.php';
 }
 
-$pagenum = isset( $_GET['paged'] ) ? absint( $_GET['paged'] ) : 0;
+$pagenum = isset( $_GET['paged'] ) ? abs( (int) $_GET['paged'] ) : 0;
 if ( empty($pagenum) )
 	$pagenum = 1;
 $per_page = 'edit_' . $post_type . '_per_page';
Index: wordpress/wp-admin/ms-sites.php
===================================================================
--- wordpress/wp-admin/ms-sites.php	(revision 14666)
+++ wordpress/wp-admin/ms-sites.php	(working copy)
@@ -319,7 +319,7 @@
 	// List sites
 	case 'list':
 	default:
-		$pagenum = isset( $_GET['paged'] ) ? absint( $_GET['paged'] ) : 0;
+		$pagenum = isset( $_GET['paged'] ) ? abs( (int) $_GET['paged'] ) : 0;
 		if ( empty($pagenum) )
 			$pagenum = 1;
 
Index: wordpress/wp-admin/ms-users.php
===================================================================
--- wordpress/wp-admin/ms-users.php	(revision 14666)
+++ wordpress/wp-admin/ms-users.php	(working copy)
@@ -48,7 +48,7 @@
 	<?php
 }
 
-	$pagenum = isset( $_GET['paged'] ) ? absint( $_GET['paged'] ) : 0;
+	$pagenum = isset( $_GET['paged'] ) ? abs( (int) $_GET['paged'] ) : 0;
 	if ( empty( $pagenum ) )
 		$pagenum = 1;
 
Index: wordpress/wp-admin/revision.php
===================================================================
--- wordpress/wp-admin/revision.php	(revision 14666)
+++ wordpress/wp-admin/revision.php	(working copy)
@@ -13,10 +13,10 @@
 
 wp_reset_vars(array('revision', 'left', 'right', 'diff', 'action'));
 
-$revision_id = absint($revision);
-$diff        = absint($diff);
-$left        = absint($left);
-$right       = absint($right);
+$revision_id = abs( (int)$revision);
+$diff        = abs( (int)$diff);
+$left        = abs( (int)$left);
+$right       = abs( (int)$right);
 
 $redirect = 'edit.php';
 
Index: wordpress/wp-admin/themes.php
===================================================================
--- wordpress/wp-admin/themes.php	(revision 14666)
+++ wordpress/wp-admin/themes.php	(working copy)
@@ -73,7 +73,7 @@
 $per_page = 15;
 
 if ( isset( $_GET['pagenum'] ) )
-	$page = absint( $_GET['pagenum'] );
+	$page = abs( (int) $_GET['pagenum'] );
 
 if ( empty($page) )
 	$page = 1;
Index: wordpress/wp-includes/comment.php
===================================================================
--- wordpress/wp-includes/comment.php	(revision 14666)
+++ wordpress/wp-includes/comment.php	(working copy)
@@ -222,7 +222,7 @@
 		return $cache;
 	}
 
-	$post_id = absint($post_id);
+	$post_id = abs( (int)$post_id);
 
 	if ( 'hold' == $status )
 		$approved = "comment_approved = '0'";
@@ -264,8 +264,8 @@
 		$orderby = 'comment_date_gmt';
 	}
 
-	$number = absint($number);
-	$offset = absint($offset);
+	$number = abs( (int)$number);
+	$offset = abs( (int)$offset);
 
 	if ( !empty($number) ) {
 		if ( $offset )
@@ -1257,7 +1257,7 @@
 	elseif ( isset($commentdata['user_id']) )
 		$commentdata['user_id'] = (int) $commentdata['user_id'];
 
-	$commentdata['comment_parent'] = isset($commentdata['comment_parent']) ? absint($commentdata['comment_parent']) : 0;
+	$commentdata['comment_parent'] = isset($commentdata['comment_parent']) ? abs( (int)$commentdata['comment_parent']) : 0;
 	$parent_status = ( 0 < $commentdata['comment_parent'] ) ? wp_get_comment_status($commentdata['comment_parent']) : '';
 	$commentdata['comment_parent'] = ( 'approved' == $parent_status || 'unapproved' == $parent_status ) ? $commentdata['comment_parent'] : 0;
 
Index: wordpress/wp-includes/default-widgets.php
===================================================================
--- wordpress/wp-includes/default-widgets.php	(revision 14666)
+++ wordpress/wp-includes/default-widgets.php	(working copy)
@@ -678,7 +678,7 @@
 
 	function form( $instance ) {
 		$title = isset($instance['title']) ? esc_attr($instance['title']) : '';
-		$number = isset($instance['number']) ? absint($instance['number']) : 5;
+		$number = isset($instance['number']) ? abs( (int)$instance['number']) : 5;
 ?>
 		<p><label for="<?php echo $this->get_field_id('title'); ?>"><?php _e('Title:'); ?></label>
 		<input class="widefat" id="<?php echo $this->get_field_id('title'); ?>" name="<?php echo $this->get_field_name('title'); ?>" type="text" value="<?php echo $title; ?>" /></p>
Index: wordpress/wp-includes/deprecated.php
===================================================================
--- wordpress/wp-includes/deprecated.php	(revision 14666)
+++ wordpress/wp-includes/deprecated.php	(working copy)
@@ -2513,3 +2513,17 @@
 	_deprecated_function( __FUNCTION__, '3.0' );
 	return '';
 }
+
+/**
+ * Converts value to nonnegative integer.
+ * 
+ * @deprecated 3.0.0
+ * @since 2.5.0
+ *
+ * @param scalar|array $maybeint Data you wish to have convered to an nonnegative integer
+ * @return int An nonnegative integer
+ */
+function absint( $maybeint ) {
+	_deprecated_function( __FUNCTION__, '3.0' );
+	return abs( (int) $maybeint );
+}
Index: wordpress/wp-includes/formatting.php
===================================================================
--- wordpress/wp-includes/formatting.php	(revision 14666)
+++ wordpress/wp-includes/formatting.php	(working copy)
@@ -2401,12 +2401,12 @@
 		case 'thread_comments_depth':
 		case 'users_can_register':
 		case 'start_of_week':
-			$value = absint( $value );
+			$value = abs( (int) $value );
 			break;
 
 		case 'embed_size_w':
 			if ( '' !== $value )
-				$value = absint( $value );
+				$value = abs( (int) $value );
 			break;
 
 		case 'posts_per_page':
Index: wordpress/wp-includes/functions.php
===================================================================
--- wordpress/wp-includes/functions.php	(revision 14666)
+++ wordpress/wp-includes/functions.php	(working copy)
@@ -136,7 +136,7 @@
  */
 function number_format_i18n( $number, $decimals = 0 ) {
 	global $wp_locale;
-	$formatted = number_format( $number, absint( $decimals ), $wp_locale->number_format['decimal_point'], $wp_locale->number_format['thousands_sep'] );
+	$formatted = number_format( $number, abs( (int) $decimals ), $wp_locale->number_format['decimal_point'], $wp_locale->number_format['thousands_sep'] );
 	return apply_filters( 'number_format_i18n', $formatted );
 }
 
@@ -1510,7 +1510,7 @@
 function get_status_header_desc( $code ) {
 	global $wp_header_to_desc;
 
-	$code = absint( $code );
+	$code = abs( (int) $code );
 
 	if ( !isset( $wp_header_to_desc ) ) {
 		$wp_header_to_desc = array(
@@ -3128,18 +3128,6 @@
 }
 
 /**
- * Converts value to nonnegative integer.
- *
- * @since 2.5.0
- *
- * @param mixed $maybeint Data you wish to have convered to an nonnegative integer
- * @return int An nonnegative integer
- */
-function absint( $maybeint ) {
-	return abs( intval( $maybeint ) );
-}
-
-/**
  * Determines if the blog can be accessed over SSL.
  *
  * Determines if blog can be accessed over SSL by using cURL to access the site
Index: wordpress/wp-includes/general-template.php
===================================================================
--- wordpress/wp-includes/general-template.php	(revision 14666)
+++ wordpress/wp-includes/general-template.php	(working copy)
@@ -877,7 +877,7 @@
 		$type = 'monthly';
 
 	if ( '' != $limit ) {
-		$limit = absint($limit);
+		$limit = abs( (int)$limit);
 		$limit = ' LIMIT '.$limit;
 	}
 
Index: wordpress/wp-includes/media.php
===================================================================
--- wordpress/wp-includes/media.php	(revision 14666)
+++ wordpress/wp-includes/media.php	(working copy)
@@ -179,7 +179,7 @@
  */
 function add_image_size( $name, $width = 0, $height = 0, $crop = FALSE ) {
 	global $_wp_additional_image_sizes;
-	$_wp_additional_image_sizes[$name] = array( 'width' => absint( $width ), 'height' => absint( $height ), 'crop' => !!$crop );
+	$_wp_additional_image_sizes[$name] = array( 'width' => abs( (int) $width ), 'height' => abs( (int) $height ), 'crop' => !!$crop );
 }
 
 /**
Index: wordpress/wp-includes/meta.php
===================================================================
--- wordpress/wp-includes/meta.php	(revision 14666)
+++ wordpress/wp-includes/meta.php	(working copy)
@@ -32,7 +32,7 @@
 	if ( !$meta_type || !$meta_key )
 		return false;
 
-	if ( !$object_id = absint($object_id) )
+	if ( !$object_id = abs( (int)$object_id) )
 		return false;
 
 	if ( ! $table = _get_meta_table($meta_type) )
@@ -92,7 +92,7 @@
 	if ( !$meta_type || !$meta_key )
 		return false;
 
-	if ( !$object_id = absint($object_id) )
+	if ( !$object_id = abs( (int)$object_id) )
 		return false;
 
 	if ( ! $table = _get_meta_table($meta_type) )
@@ -164,7 +164,7 @@
 	if ( !$meta_type || !$meta_key )
 		return false;
 
-	if ( (!$object_id = absint($object_id)) && !$delete_all )
+	if ( (!$object_id = abs( (int)$object_id)) && !$delete_all )
 		return false;
 
 	if ( ! $table = _get_meta_table($meta_type) )
@@ -224,7 +224,7 @@
 	if ( !$meta_type )
 		return false;
 
-	if ( !$object_id = absint($object_id) )
+	if ( !$object_id = abs( (int)$object_id) )
 		return false;
 
 	$meta_cache = wp_cache_get($object_id, $meta_type . '_meta');
Index: wordpress/wp-includes/pluggable.php
===================================================================
--- wordpress/wp-includes/pluggable.php	(revision 14666)
+++ wordpress/wp-includes/pluggable.php	(working copy)
@@ -103,7 +103,7 @@
 function get_userdata( $user_id ) {
 	global $wpdb;
 
-	$user_id = absint( $user_id );
+	$user_id = abs( (int) $user_id );
 	if ( ! $user_id )
 		return false;
 
Index: wordpress/wp-includes/post.php
===================================================================
--- wordpress/wp-includes/post.php	(revision 14666)
+++ wordpress/wp-includes/post.php	(working copy)
@@ -1341,10 +1341,10 @@
 function is_sticky($post_id = null) {
 	global $id;
 
-	$post_id = absint($post_id);
+	$post_id = abs( (int)$post_id);
 
 	if ( !$post_id )
-		$post_id = absint($id);
+		$post_id = abs( (int)$id);
 
 	$stickies = get_option('sticky_posts');
 
Index: wordpress/wp-includes/query.php
===================================================================
--- wordpress/wp-includes/query.php	(revision 14666)
+++ wordpress/wp-includes/query.php	(working copy)
@@ -1253,20 +1253,20 @@
 		if ( ! empty($qv['robots']) )
 			$this->is_robots = true;
 
-		$qv['p'] =  absint($qv['p']);
-		$qv['page_id'] =  absint($qv['page_id']);
-		$qv['year'] = absint($qv['year']);
-		$qv['monthnum'] = absint($qv['monthnum']);
-		$qv['day'] = absint($qv['day']);
-		$qv['w'] = absint($qv['w']);
-		$qv['m'] = absint($qv['m']);
-		$qv['paged'] = absint($qv['paged']);
+		$qv['p'] =  abs( (int)$qv['p']);
+		$qv['page_id'] =  abs( (int)$qv['page_id']);
+		$qv['year'] = abs( (int)$qv['year']);
+		$qv['monthnum'] = abs( (int)$qv['monthnum']);
+		$qv['day'] = abs( (int)$qv['day']);
+		$qv['w'] = abs( (int)$qv['w']);
+		$qv['m'] = abs( (int)$qv['m']);
+		$qv['paged'] = abs( (int)$qv['paged']);
 		$qv['cat'] = preg_replace( '|[^0-9,-]|', '', $qv['cat'] ); // comma separated list of positive or negative integers
 		$qv['pagename'] = trim( $qv['pagename'] );
 		$qv['name'] = trim( $qv['name'] );
-		if ( '' !== $qv['hour'] ) $qv['hour'] = absint($qv['hour']);
-		if ( '' !== $qv['minute'] ) $qv['minute'] = absint($qv['minute']);
-		if ( '' !== $qv['second'] ) $qv['second'] = absint($qv['second']);
+		if ( '' !== $qv['hour'] ) $qv['hour'] = abs( (int)$qv['hour']);
+		if ( '' !== $qv['minute'] ) $qv['minute'] = abs( (int)$qv['minute']);
+		if ( '' !== $qv['second'] ) $qv['second'] = abs( (int)$qv['second']);
 
 		// Compat.  Map subpost to attachment.
 		if ( '' != $qv['subpost'] )
@@ -1274,7 +1274,7 @@
 		if ( '' != $qv['subpost_id'] )
 			$qv['attachment_id'] = $qv['subpost_id'];
 
-		$qv['attachment_id'] = absint($qv['attachment_id']);
+		$qv['attachment_id'] = abs( (int)$qv['attachment_id']);
 
 		if ( ('' != $qv['attachment']) || !empty($qv['attachment_id']) ) {
 			$this->is_single = true;
@@ -1385,7 +1385,7 @@
 			if (  '' != $qv['tag'] )
 				$this->is_tag = true;
 
-			$qv['tag_id'] = absint($qv['tag_id']);
+			$qv['tag_id'] = abs( (int)$qv['tag_id']);
 			if (  !empty($qv['tag_id']) )
 				$this->is_tag = true;
 
@@ -1685,7 +1685,7 @@
 
 		if ( isset($q['page']) ) {
 			$q['page'] = trim($q['page'], '/');
-			$q['page'] = absint($q['page']);
+			$q['page'] = abs( (int)$q['page']);
 		}
 
 		// If true, forcibly turns off SQL_CALC_FOUND_ROWS even when limits are present.
@@ -1804,11 +1804,11 @@
 			$where .= ' AND ' . _wp_mysql_week( "`$wpdb->posts`.`post_date`" ) . " = '" . $q['w'] . "'";
 
 		if ( intval($q['comments_popup']) )
-			$q['p'] = absint($q['comments_popup']);
+			$q['p'] = abs( (int)$q['comments_popup']);
 
 		// If an attachment is requested by number, let it supercede any post number.
 		if ( $q['attachment_id'] )
-			$q['p'] = absint($q['attachment_id']);
+			$q['p'] = abs( (int)$q['attachment_id']);
 
 		// If a post number is specified, load that post
 		if ( $q['p'] ) {
@@ -2082,7 +2082,7 @@
 			$author_array = preg_split('/[,\s]+/', $q['author']);
 			$_author_array = array();
 			foreach ( $author_array as $key => $_author )
-				$_author_array[] = "$wpdb->posts.post_author " . $eq . ' ' . absint($_author);
+				$_author_array[] = "$wpdb->posts.post_author " . $eq . ' ' . abs( (int)$_author);
 			$whichauthor .= ' AND (' . implode(" $andor ", $_author_array) . ')';
 			unset($author_array, $_author_array);
 		}
@@ -2102,7 +2102,7 @@
 			$q['author'] = get_user_by('slug', $q['author_name']);
 			if ( $q['author'] )
 				$q['author'] = $q['author']->ID;
-			$whichauthor .= " AND ($wpdb->posts.post_author = " . absint($q['author']) . ')';
+			$whichauthor .= " AND ($wpdb->posts.post_author = " . abs( (int)$q['author']) . ')';
 		}
 
 		// MIME-Type stuff for attachment browsing
@@ -2316,7 +2316,7 @@
 
 		// Paging
 		if ( empty($q['nopaging']) && !$this->is_singular ) {
-			$page = absint($q['paged']);
+			$page = abs( (int)$q['paged']);
 			if ( empty($page) )
 				$page = 1;
 
@@ -2325,7 +2325,7 @@
 				$pgstrt = ($page - 1) * $q['posts_per_page'] . ', ';
 				$limits = 'LIMIT ' . $pgstrt . $q['posts_per_page'];
 			} else { // we're ignoring $page and using 'offset'
-				$q['offset'] = absint($q['offset']);
+				$q['offset'] = abs( (int)$q['offset']);
 				$pgstrt = $q['offset'] . ', ';
 				$limits = 'LIMIT ' . $pgstrt . $q['posts_per_page'];
 			}
Index: wordpress/wp-includes/rewrite.php
===================================================================
--- wordpress/wp-includes/rewrite.php	(revision 14666)
+++ wordpress/wp-includes/rewrite.php	(working copy)
@@ -256,7 +256,7 @@
 
 	// First, check to see if there is a 'p=N' or 'page_id=N' to match against
 	if ( preg_match('#[?&](p|page_id|attachment_id)=(\d+)#', $url, $values) )	{
-		$id = absint($values[2]);
+		$id = abs( (int)$values[2]);
 		if ( $id )
 			return $id;
 	}
Index: wordpress/wp-includes/taxonomy.php
===================================================================
--- wordpress/wp-includes/taxonomy.php	(revision 14666)
+++ wordpress/wp-includes/taxonomy.php	(working copy)
@@ -814,8 +814,8 @@
 		'hierarchical' => true, 'child_of' => 0, 'get' => '', 'name__like' => '',
 		'pad_counts' => false, 'offset' => '', 'search' => '');
 	$args = wp_parse_args( $args, $defaults );
-	$args['number'] = absint( $args['number'] );
-	$args['offset'] = absint( $args['offset'] );
+	$args['number'] = abs( (int) $args['number'] );
+	$args['offset'] = abs( (int) $args['offset'] );
 	if ( !$single_taxonomy || !is_taxonomy_hierarchical($taxonomies[0]) ||
 		'' !== $args['parent'] ) {
 		$args['child_of'] = 0;
Index: wordpress/wp-includes/theme.php
===================================================================
--- wordpress/wp-includes/theme.php	(revision 14666)
+++ wordpress/wp-includes/theme.php	(working copy)
@@ -757,7 +757,7 @@
  * @return string
  */
 function get_author_template() {
-	$author_id = absint( get_query_var( 'author' ) );
+	$author_id = abs( (int) get_query_var( 'author' ) );
 	$author = get_user_by( 'id', $author_id );
 	$author = $author->user_nicename;
 
@@ -786,7 +786,7 @@
  * @return string
  */
 function get_category_template() {
-	$cat_ID = absint( get_query_var('cat') );
+	$cat_ID = abs( (int) get_query_var('cat') );
 	$category = get_category( $cat_ID );
 
 	$templates = array();
@@ -814,7 +814,7 @@
  * @return string
  */
 function get_tag_template() {
-	$tag_id = absint( get_query_var('tag_id') );
+	$tag_id = abs( (int) get_query_var('tag_id') );
 	$tag_name = get_query_var('tag');
 
 	$templates = array();
Index: wordpress/wp-comments-post.php
===================================================================
--- wordpress/wp-comments-post.php	(revision 14666)
+++ wordpress/wp-comments-post.php	(working copy)
@@ -83,7 +83,7 @@
 if ( '' == $comment_content )
 	wp_die( __('Error: please type a comment.') );
 
-$comment_parent = isset($_POST['comment_parent']) ? absint($_POST['comment_parent']) : 0;
+$comment_parent = isset($_POST['comment_parent']) ? abs( (int)$_POST['comment_parent']) : 0;
 
 $commentdata = compact('comment_post_ID', 'comment_author', 'comment_author_email', 'comment_author_url', 'comment_content', 'comment_type', 'comment_parent', 'user_ID');
 
Index: wordpress/wp-links-opml.php
===================================================================
--- wordpress/wp-links-opml.php	(revision 14666)
+++ wordpress/wp-links-opml.php	(working copy)
@@ -22,7 +22,7 @@
 if ( !empty($_GET['link_cat']) ) {
 	$link_cat = $_GET['link_cat'];
 	if ( !in_array($link_cat, array('all', '0')) )
-		$link_cat = absint( (string)urldecode($link_cat) );
+		$link_cat = abs( (int) (string)urldecode($link_cat) );
 }
 
 echo '<?xml version="1.0"?'.">\n";
Index: wordpress/xmlrpc.php
===================================================================
--- wordpress/xmlrpc.php	(revision 14666)
+++ wordpress/xmlrpc.php	(working copy)
@@ -1098,15 +1098,15 @@
 
 		$post_id = '';
 		if ( isset($struct['post_id']) )
-			$post_id = absint($struct['post_id']);
+			$post_id = abs( (int)$struct['post_id']);
 
 		$offset = 0;
 		if ( isset($struct['offset']) )
-			$offset = absint($struct['offset']);
+			$offset = abs( (int)$struct['offset']);
 
 		$number = 10;
 		if ( isset($struct['number']) )
-			$number = absint($struct['number']);
+			$number = abs( (int)$struct['number']);
 
 		$comments = get_comments( array('status' => $status, 'post_id' => $post_id, 'offset' => $offset, 'number' => $number ) );
 		$num_comments = count($comments);
@@ -1259,7 +1259,7 @@
 		}
 
 		if ( is_numeric($post) )
-			$post_id = absint($post);
+			$post_id = abs( (int)$post);
 		else
 			$post_id = url_to_postid($post);
 
@@ -1299,7 +1299,7 @@
 			}
 		}
 
-		$comment['comment_parent'] = isset($content_struct['comment_parent']) ? absint($content_struct['comment_parent']) : 0;
+		$comment['comment_parent'] = isset($content_struct['comment_parent']) ? abs( (int)$content_struct['comment_parent']) : 0;
 
 		$comment['comment_content'] = $content_struct['content'];
 
