Changeset 7894 for trunk/wp-includes/post.php
- Timestamp:
- 05/05/2008 04:03:27 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/post.php
r7892 r7894 71 71 if ( empty( $args ) ) { 72 72 if ( isset( $GLOBALS['post'] ) ) { 73 $args = 'post_parent=' . (int) $GLOBALS['post']->post_parent;73 $args = array('post_parent' => (int) $GLOBALS['post']->post_parent ); 74 74 } else { 75 75 return false; 76 76 } 77 77 } elseif ( is_object( $args ) ) { 78 $args = 'post_parent=' . (int) $args->post_parent;78 $args = array('post_parent' => (int) $args->post_parent ); 79 79 } elseif ( is_numeric( $args ) ) { 80 $args = 'post_parent=' . (int) $args;80 $args = array('post_parent' => (int) $args); 81 81 } 82 82
Note: See TracChangeset
for help on using the changeset viewer.