Make WordPress Core

Changeset 19687 for trunk/wp-app.php


Ignore:
Timestamp:
01/05/2012 08:50:54 PM (15 years ago)
Author:
ryan
Message:

User lowercase true, false, null instead of uppercase. Props c3mdigital, mfields. fixes #16302

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-app.php

    r19593 r19687  
    616616                $ext = preg_replace( '|.*/([a-z0-9]+)|', '$1', $_SERVER['CONTENT_TYPE'] );
    617617                $slug = sanitize_file_name( "$slug.$ext" );
    618                 $file = wp_upload_bits( $slug, NULL, $bits);
     618                $file = wp_upload_bits( $slug, null, $bits);
    619619
    620620                log_app('wp_upload_bits returns:',print_r($file,true));
     
    10741074                log_app('function',"total_count(# $wp_query->max_num_pages #)");
    10751075                $last_page = $wp_query->max_num_pages;
    1076                 $next_page = (($page + 1) > $last_page) ? NULL : $page + 1;
    1077                 $prev_page = ($page - 1) < 1 ? NULL : $page - 1;
    1078                 $last_page = ((int)$last_page == 1 || (int)$last_page == 0) ? NULL : (int) $last_page;
    1079                 $self_page = $page > 1 ? $page : NULL;
     1076                $next_page = (($page + 1) > $last_page) ? null : $page + 1;
     1077                $prev_page = ($page - 1) < 1 ? null : $page - 1;
     1078                $last_page = ((int)$last_page == 1 || (int)$last_page == 0) ? null : (int) $last_page;
     1079                $self_page = $page > 1 ? $page : null;
    10801080?><feed xmlns="<?php echo $this->ATOM_NS ?>" xmlns:app="<?php echo $this->ATOMPUB_NS ?>" xml:lang="<?php echo get_option('rss_language'); ?>" <?php do_action('app_ns'); ?> >
    10811081<id><?php $this->the_entries_url() ?></id>
     
    15281528                                $post = wp_get_single_post($this->params[1]);
    15291529                                $wp_last_modified = get_post_modified_time('D, d M Y H:i:s', true);
    1530                                 $post = NULL;
     1530                                $post = null;
    15311531                                break;
    15321532                        case $this->ENTRIES_PATH:
Note: See TracChangeset for help on using the changeset viewer.