Changeset 2060524
- Timestamp:
- 03/31/2019 05:31:54 PM (5 years ago)
- Location:
- custom-archives
- Files:
-
- 6 added
- 1 deleted
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
custom-archives/trunk/custom-archives.php
r2052010 r2060524 5 5 * Plugin URI: https://wordpress.org/plugins/custom-archives/ 6 6 * Description: Select a page to be a custom archive for your post types. 7 * Version: 3.0 7 * Version: 3.0 8 8 * Author: Daniel James 9 9 * Author URI: https://danieltj.uk/ … … 619 619 620 620 // Get a post count of at least 1. 621 $post_count = ( 1 <= $wp_query->post_count ) ? $wp_query->post_count: 1;621 $post_count = ( 1 <= : 1; 622 622 623 623 /** … … 630 630 * 631 631 * @since 3.0 632 632 633 * 633 634 * @param int $post_count The default number of posts. 634 635 * @param string $post_type The archive page post type. 635 * @param object $ queryThe current WP Query object.636 * @param object $ The current WP Query object. 636 637 */ 637 $wp_query->post_count = apply_filters( 'custom_archive_query_post_count', $post_count, $post_type, $ query );638 $wp_query->post_count = apply_filters( 'custom_archive_query_post_count', $post_count, $post_type, $query ); 638 639 639 640 $directory = get_template_directory(); -
custom-archives/trunk/readme.txt
r2052010 r2060524 4 4 Requires at least: 4.6 5 5 Tested up to: 5.1 6 Stable tag: 3.0 6 Stable tag: 3.0 7 7 License: GNU GPL v3 8 8 License URI: https://www.gnu.org/licenses/gpl-3.0.html
Note: See TracChangeset
for help on using the changeset viewer.