Plugin Directory

Changeset 2060524

Timestamp:
03/31/2019 05:31:54 PM (5 years ago)
Author:
danieltj
Message:

Update Custom Archives to v3.0.1

Location:
custom-archives
Files:
6 added
1 deleted
2 edited

Legend:

Unmodified
Added
Removed
  • custom-archives/trunk/custom-archives.php

    r2052010 r2060524  
    55 * Plugin URI: https://wordpress.org/plugins/custom-archives/
    66 * Description: Select a page to be a custom archive for your post types.
    7  * Version: 3.0
     7 * Version: 3.0
    88 * Author: Daniel James
    99 * Author URI: https://danieltj.uk/
     
    619619
    620620                // 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;
    622622
    623623                /**
     
    630630                 *
    631631                 * @since 3.0
     632
    632633                 *
    633634                 * @param int    $post_count The default number of posts.
    634635                 * @param string $post_type  The archive page post type.
    635                  * @param object $query      The current WP Query object.
     636                 * @param object $   The current WP Query object.
    636637                 */
    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 );
    638639
    639640                $directory = get_template_directory();
  • custom-archives/trunk/readme.txt

    r2052010 r2060524  
    44Requires at least: 4.6
    55Tested up to: 5.1
    6 Stable tag: 3.0
     6Stable tag: 3.0
    77License: GNU GPL v3
    88License URI: https://www.gnu.org/licenses/gpl-3.0.html
Note: See TracChangeset for help on using the changeset viewer.