WordPress.org

Plugin Directory

Changeset 1774956


Ignore:
Timestamp:
11/24/17 21:46:21 (3 weeks ago)
Author:
dancameron
Message:

Deploy version 16.5.1

Location:
sprout-invoices
Files:
688 added
5 edited

Legend:

Unmodified
Added
Removed
  • sprout-invoices/trunk/Sprout_Invoices.class.php

    r1774871 r1774956  
    3333     * Current version. Should match sprout-invoices.php plugin version. 
    3434     */ 
    35     const SI_VERSION = '16.5'; 
     35    const SI_VERSION = '16.5.1'; 
    3636    /** 
    3737     * DB Version 
  • sprout-invoices/trunk/changelog.txt

    r1774871 r1774956  
     1= 16.5.1 = 
     2 
     3* Fix: Latest version of WordPress handles taxonomy queries differently which may have resulted in some records being purged. 
     4 
    15= 16.5 = 
    26 
  • sprout-invoices/trunk/controllers/developer/Logs.php

    r1613648 r1774956  
    171171            'posts_per_page' => -1, 
    172172            'fields' => 'ids', 
    173             'tax_query' => array( 
    174                             array( 
    175                                 'taxonomy' => SI_Record::TAXONOMY, 
    176                                 'field' => 'id', 
    177                                 'terms' => self::LOG_TYPE, 
    178                             ), 
    179                         ), 
     173                'tax_query' => array( 
     174                    array( 
     175                        'taxonomy' => SI_Record::TAXONOMY, 
     176                        'field'    => 'slug', 
     177                        'terms'    => self::LOG_TYPE, 
     178                    ), 
     179                ), 
    180180        ); 
    181181 
    182182        add_filter( 'posts_where', array( __CLASS__, 'filter_where_with_when' ) ); // add filter to base return on dates 
    183183        $records = new WP_Query( $args ); 
     184 
    184185        remove_filter( 'posts_where', array( __CLASS__, 'filter_where_with_when' ) ); // Remove filter 
    185186        foreach ( $records->posts as $record_id ) { 
    186             wp_delete_post( $record_id, true ); 
     187            if ( has_term( self::LOG_TYPE, SI_Record::TAXONOMY, $record_id ) ) { // confirm 
     188                wp_delete_post( $record_id, true ); 
     189            } 
    187190        } 
    188191    } 
     
    195198    public static function filter_where_with_when( $where = '' ) { 
    196199        // posts 15+ old 
    197         $offset = apply_filters( 'si_logs_purge_filter_delay', date_i18n( 'Y-m-d', strtotime( '-15 days' ) ), $where ); 
     200        $offset = apply_filters( 'si_logs_purge_filter_delay', date_i18n( 'Y-m-d', strtotime( '-1 days' ) ), $where ); 
    198201        $where .= " AND post_date <= '" . $offset . "'"; 
    199202        return $where; 
  • sprout-invoices/trunk/readme.txt

    r1774873 r1774956  
    55Requires at least: 3.8 
    66Tested up to: 4.9 
    7 Stable tag: 16.5 
     7Stable tag: 16.5.1 
    88License: GPLv2 or later 
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html 
     
    125125 
    126126== Changelog == 
     127 
     128= 16.5.1 = 
     129 
     130* Fix: Latest version of WordPress handles taxonomy queries differently which may have resulted in some records being purged. 
    127131 
    128132= 16.5 = 
  • sprout-invoices/trunk/sprout-invoices.php

    r1774871 r1774956  
    33/** 
    44 * @package Sprout_Invoices 
    5  * @version 16.5 
     5 * @version 16.5.1 
    66 */ 
    77 
     
    1111 * Description: App allows for any WordPress site to accept estimates, create invoices and receive invoice payments. Learn more at <a href="https://sproutapps.co">Sprout Apps</a>. 
    1212 * Author: Sprout Apps 
    13  * Version: 16.5 
     13 * Version: 16.5.1 
    1414 * Author URI: https://sproutapps.co 
    1515 * Text Domain: sprout-invoices 
Note: See TracChangeset for help on using the changeset viewer.