Plugin Directory

Changeset 3255613


Ignore:
Timestamp:
03/13/2025 09:17:09 PM (13 months ago)
Author:
spiffyplugins
Message:

Version 5.0.5

Location:
spiffy-calendar/trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • spiffy-calendar/trunk/includes/admin/admin-settings-tab-settings.php

    r3254996 r3255613  
    174174<tr>
    175175    <th scope="row">
     176        <?php _e('Event query limit','spiffy-calendar'); ?>
     177    </th>
     178    <td>
     179        <input type="text" name="max_event_query" value="<?php echo esc_html($this->current_options['max_event_query']); ?>" size="3" maxlength="3" />
     180        <span class="description"><?php _e('Limit calendar output to using this number of the most recently published events.', 'spiffy-calendar'); ?></span>
     181    </td>
     182</tr>
     183
     184<tr>
     185    <th scope="row">
    176186        <?php _e('More details link text','spiffy-calendar'); ?>
    177187    </th>
  • spiffy-calendar/trunk/includes/admin/custom-posts.php

    r3254996 r3255613  
    633633    */
    634634    function my_sort_custom_column_query( $query ) {
    635         if( ! is_admin() )
     635        if( !is_admin() || ( 'spiffy_event' != $query->get( 'post_type' ) ))
    636636            return;
    637 
     637             
    638638        $orderby = $query->get( 'orderby' );
    639639
  • spiffy-calendar/trunk/includes/views.php

    r3255505 r3255613  
    13011301        $args = array(
    13021302                    'post_type' => 'spiffy_event',
    1303                     'numberposts' => -1,
     1303                    'numberposts' => $spiffy_calendar->current_options['max_event_query'],      // limit to latest events to avoid reading 1000s of old events
     1304                    'orderby' => 'date',
     1305                    'order' => 'DESC',
    13041306                    'post_status' => 'publish',
    13051307                    );
  • spiffy-calendar/trunk/readme.txt

    r3255505 r3255613  
    44Requires at least: 5.3
    55Tested up to: 6.8
    6 Stable tag: 5.0.4
     6Stable tag: 5.0.5
    77License: GPLv2
    88Tags:  calendar,event,responsive,recurring,block
     
    172172**Before updating from version 4 to version 5 it is strongly recommended to remove old events**
    173173
     174= 5.0.5 (March 13, 2025) =
     175
     176* New: setting for event limit, default is 500. This will limit calendar output to using the 500 most recent events to exclude the case of 1000s of old events
     177* Fix: post ordering on other post types
     178
    174179= 5.0.4 (March 13, 2025) =
    175180
  • spiffy-calendar/trunk/spiffy-calendar.php

    r3255505 r3255613  
    44Plugin URI:  http://www.spiffyplugins.ca/spiffycalendar
    55Description: A full featured, simple to use Spiffy Calendar plugin for WordPress that allows you to manage and display your events and appointments.
    6 Version:     5.0.4
     6Version:     5.0.5
    77Author:      Spiffy Plugins
    88Author URI:  http://spiffyplugins.ca
     
    203203                        'mini_popup' => 'right',
    204204                        'exclude_from_search' => false,
     205                        'max_event_query' => 500,
    205206                        'title_label' => ''
    206207                    );
     
    765766        }
    766767           
     768        $this->current_options['max_event_query'] = (int) (sanitize_text_field($_POST['max_event_query']) );
     769
    767770        // Check to see if we are removing custom styles
    768771        if (isset($_POST['reset_styles'])) {
Note: See TracChangeset for help on using the changeset viewer.