Make WordPress Core


Ignore:
Timestamp:
05/05/2008 04:03:27 PM (17 years ago)
Author:
ryan
Message:

Use array calling style. Props DD32. see #6647

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/post.php

    r7892 r7894  
    7171    if ( empty( $args ) ) {
    7272        if ( isset( $GLOBALS['post'] ) ) {
    73             $args = 'post_parent=' . (int) $GLOBALS['post']->post_parent;
     73            $args = array('post_parent' => (int) $GLOBALS['post']->post_parent );
    7474        } else {
    7575            return false;
    7676        }
    7777    } elseif ( is_object( $args ) ) {
    78         $args = 'post_parent=' . (int) $args->post_parent;
     78        $args = array('post_parent' => (int) $args->post_parent );
    7979    } elseif ( is_numeric( $args ) ) {
    80         $args = 'post_parent=' . (int) $args;
     80        $args = array('post_parent' => (int) $args);
    8181    }
    8282
Note: See TracChangeset for help on using the changeset viewer.