Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: app_ns

To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).

Understanding Source Code

The best way to understand what a hook does is to look at where it occurs in the source code.

Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.

Source View

Line Code
1071           $blog_id = (int) $GLOBALS['blog_id'];
1072           log_app('function',"query_posts(# " . print_r($wp_query, true) . "#)");
1073
1074           log_app('function',"total_count(# $wp_query->max_num_pages #)");
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;
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 <id><?php $this->the_entries_url() ?></id>
1082 <updated><?php echo mysql2date('Y-m-d\TH:i:s\Z', get_lastpostmodified('GMT'), false); ?></updated>
1083 <title type="text"><?php bloginfo_rss('name') ?></title>
1084 <subtitle type="text"><?php bloginfo_rss("description") ?></subtitle>
1085 <link rel="first" type="<?php echo $this->ATOM_CONTENT_TYPE ?>" href="<?php $this->the_entries_url() ?>" />
1086 <?php if (isset($prev_page)): ?>
1087 <link rel="previous" type="<?php echo $this->ATOM_CONTENT_TYPE ?>" href="<?php $this->the_entries_url($prev_page) ?>" />
1088 <?php endif; ?>
1089 <?php if (isset($next_page)): ?>