Make WordPress Core


Ignore:
Timestamp:
02/19/2010 01:03:58 AM (15 years ago)
Author:
nacin
Message:

Assume WP_DEBUG is defined in wpdb. Remove unnecessary constant() calls. Ensure DB_COLLATE defined as empty string doesn't override default Multisite collation. fixes #12041, see #11644

File:
1 edited

Legend:

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

    r13199 r13209  
    41704170
    41714171    // WP_POST_REVISIONS = 0, false
    4172     if ( !constant('WP_POST_REVISIONS') )
     4172    if ( ! WP_POST_REVISIONS )
    41734173        return;
    41744174
     
    44494449 */
    44504450function wp_get_post_revisions( $post_id = 0, $args = null ) {
    4451     if ( !constant('WP_POST_REVISIONS') )
     4451    if ( ! WP_POST_REVISIONS )
    44524452        return array();
    44534453    if ( ( !$post = get_post( $post_id ) ) || empty( $post->ID ) )
Note: See TracChangeset for help on using the changeset viewer.