Changeset 6682
- Timestamp:
- 01/29/2008 06:48:38 PM (17 years ago)
- Location:
- trunk
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/import/btt.php
r6430 r6682 30 30 $step = 0; 31 31 else 32 $step = abs (intval($_GET['step']));32 $step = absint($_GET['step']); 33 33 34 34 // load the header -
trunk/wp-admin/import/jkw.php
r6430 r6682 34 34 $step = 0; 35 35 else 36 $step = abs (intval($_GET['step']));36 $step = absint($_GET['step']); 37 37 38 38 // load the header -
trunk/wp-includes/general-template.php
r6632 r6682 370 370 371 371 if ( '' != $limit ) { 372 $limit = abs (intval($limit));372 $limit = absint($limit); 373 373 $limit = ' LIMIT '.$limit; 374 374 } -
trunk/wp-includes/pluggable.php
r6649 r6682 121 121 global $wpdb; 122 122 123 $user_id = abs (intval($user_id));123 $user_id = absint($user_id); 124 124 if ( $user_id == 0 ) 125 125 return false; -
trunk/wp-includes/query.php
r6653 r6682 1197 1197 // Paging 1198 1198 if ( empty($q['nopaging']) && !$this->is_singular ) { 1199 $page = abs (intval($q['paged']));1199 $page = absint($q['paged']); 1200 1200 if (empty($page)) { 1201 1201 $page = 1; … … 1207 1207 $limits = 'LIMIT '.$pgstrt.$q['posts_per_page']; 1208 1208 } else { // we're ignoring $page and using 'offset' 1209 $q['offset'] = abs (intval($q['offset']));1209 $q['offset'] = absint($q['offset']); 1210 1210 $pgstrt = $q['offset'] . ', '; 1211 1211 $limits = 'LIMIT ' . $pgstrt . $q['posts_per_page']; -
trunk/wp-settings.php
r6681 r6682 13 13 define('WP_MEMORY_LIMIT', '32M'); 14 14 15 if ( function_exists('memory_get_usage') && ( (int) @ini_get('memory_limit') < abs (intval(WP_MEMORY_LIMIT)) ) )15 if ( function_exists('memory_get_usage') && ( (int) @ini_get('memory_limit') < absint(WP_MEMORY_LIMIT) ) ) 16 16 @ini_set('memory_limit', WP_MEMORY_LIMIT); 17 17
Note: See TracChangeset
for help on using the changeset viewer.