Make WordPress Core


Ignore:
Timestamp:
02/19/2010 01:03:58 AM (16 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-admin/revision.php

    r12859 r13209  
    3030        break;
    3131
    32     if ( !constant('WP_POST_REVISIONS') && !wp_is_post_autosave( $revision ) ) // Revisions disabled and we're not looking at an autosave
     32    if ( ! WP_POST_REVISIONS && !wp_is_post_autosave( $revision ) ) // Revisions disabled and we're not looking at an autosave
    3333        break;
    3434
     
    6969        break; // Don't diff two unrelated revisions
    7070
    71     if ( !constant('WP_POST_REVISIONS') ) { // Revisions disabled
     71    if ( ! WP_POST_REVISIONS ) { // Revisions disabled
    7272        if (
    7373            // we're not looking at an autosave
     
    107107        break;
    108108
    109     if ( !constant('WP_POST_REVISIONS') && !wp_is_post_autosave( $revision ) ) // Revisions disabled and we're not looking at an autosave
     109    if ( ! WP_POST_REVISIONS && !wp_is_post_autosave( $revision ) ) // Revisions disabled and we're not looking at an autosave
    110110        break;
    111111
     
    208208
    209209$args = array( 'format' => 'form-table', 'parent' => true, 'right' => $right, 'left' => $left );
    210 if ( !constant( 'WP_POST_REVISIONS' ) )
     210if ( ! WP_POST_REVISIONS )
    211211    $args['type'] = 'autosave';
    212212
Note: See TracChangeset for help on using the changeset viewer.