Make WordPress Core

Changeset 3535


Ignore:
Timestamp:
02/15/2006 07:16:58 AM (21 years ago)
Author:
ryan
Message:

Use post_type not post_status.

Location:
trunk/wp-includes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/comment-functions.php

    r3517 r3535  
    768768        if ( $id = url_to_postid($url) ) {
    769769                $post = & get_post($id);
    770                 if ( 'attachment' == $post->post_status )
     770                if ( 'attachment' == $post->post_type )
    771771                        return true;
    772772        }
  • trunk/wp-includes/functions.php

    r3523 r3535  
    556556                'to_ping' => $post->to_ping,
    557557                'pinged' => $post->pinged,
     558                'post_type' => $post->post_type,
    558559                'post_name' => $post->post_name
    559560        );
Note: See TracChangeset for help on using the changeset viewer.