Changeset 19687 for trunk/wp-app.php
- Timestamp:
- 01/05/2012 08:50:54 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-app.php
r19593 r19687 616 616 $ext = preg_replace( '|.*/([a-z0-9]+)|', '$1', $_SERVER['CONTENT_TYPE'] ); 617 617 $slug = sanitize_file_name( "$slug.$ext" ); 618 $file = wp_upload_bits( $slug, NULL, $bits);618 $file = wp_upload_bits( $slug, null, $bits); 619 619 620 620 log_app('wp_upload_bits returns:',print_r($file,true)); … … 1074 1074 log_app('function',"total_count(# $wp_query->max_num_pages #)"); 1075 1075 $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; 1080 1080 ?><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'); ?> > 1081 1081 <id><?php $this->the_entries_url() ?></id> … … 1528 1528 $post = wp_get_single_post($this->params[1]); 1529 1529 $wp_last_modified = get_post_modified_time('D, d M Y H:i:s', true); 1530 $post = NULL;1530 $post = null; 1531 1531 break; 1532 1532 case $this->ENTRIES_PATH:
Note: See TracChangeset
for help on using the changeset viewer.