Changeset 15549 for trunk/wp-includes/post.php
- Timestamp:
- 08/28/2010 11:57:28 AM (16 years ago)
- File:
-
- 1 edited
-
trunk/wp-includes/post.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/post.php
r15548 r15549 1269 1269 */ 1270 1270 function get_post_custom($post_id = 0) { 1271 global $id;1272 1273 1271 if ( !$post_id ) 1274 $post_id = (int) $id;1272 $post_id = get_the_ID(); 1275 1273 1276 1274 $post_id = (int) $post_id; … … 1337 1335 */ 1338 1336 function is_sticky($post_id = null) { 1339 global $id; 1337 if ( !$post_id ) 1338 $post_id = get_the_ID(); 1340 1339 1341 1340 $post_id = absint($post_id); 1342 1343 if ( !$post_id )1344 $post_id = absint($id);1345 1341 1346 1342 $stickies = get_option('sticky_posts');
Note: See TracChangeset
for help on using the changeset viewer.