Auto Terms of Service and Privacy Policy - Version 2.3.1

Version Description

Download this release

Release Info

Developer wpautoterms
Plugin Icon Auto Terms of Service and Privacy Policy
Version 2.3.1
Comparing to
See all releases

Code changes from version 2.3.0 to 2.3.1

README.txt CHANGED
@@ -4,7 +4,7 @@ Tags: gdpr, privacy policy, terms and conditions, cookie consent, terms of servi
4
  Requires at least: 4.2
5
  Tested up to: 5.3
6
  Requires PHP: 5.3
7
- Stable tag: 2.3.0
8
  License: GPL version 3 or any later version
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
@@ -119,6 +119,10 @@ Installing the plugin is easy. Just follow these steps:
119
 
120
  == Changelog ==
121
 
 
 
 
 
122
  = Version 2.3.0 =
123
  * Nov 27, 2019
124
  * Fix: Fixed the E_ERROR type error
4
  Requires at least: 4.2
5
  Tested up to: 5.3
6
  Requires PHP: 5.3
7
+ Stable tag: 2.3.1
8
  License: GPL version 3 or any later version
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
119
 
120
  == Changelog ==
121
 
122
+ = Version 2.3.1 =
123
+ * Dec 9, 2019
124
+ * Fix: Removed the Category template query due to WP Query limitation
125
+
126
  = Version 2.3.0 =
127
  * Nov 27, 2019
128
  * Fix: Fixed the E_ERROR type error
auto-terms-of-service-privacy-policy.php CHANGED
@@ -5,7 +5,7 @@ Plugin URI: https://wpautoterms.com
5
  Description: Create Privacy Policy, GDPR Privacy Policy, Terms & Conditions, Disclaimers. Cookie Consent Banner. More Compliance Kits to help you get compliant with the law.
6
  Author: WP AutoTerms
7
  Author URI: https://wpautoterms.com
8
- Version: 2.3.0
9
  License: GPLv2 or later
10
  Text Domain: wpautoterms
11
  Domain Path: /languages
5
  Description: Create Privacy Policy, GDPR Privacy Policy, Terms & Conditions, Disclaimers. Cookie Consent Banner. More Compliance Kits to help you get compliant with the law.
6
  Author: WP AutoTerms
7
  Author URI: https://wpautoterms.com
8
+ Version: 2.3.1
9
  License: GPLv2 or later
10
  Text Domain: wpautoterms
11
  Domain Path: /languages
includes/cpt/cpt.php CHANGED
@@ -18,7 +18,6 @@ abstract class CPT {
18
  add_filter( 'theme_' . static::type() . '_templates', array( __CLASS__, '_filter_templates' ), 10, 2 );
19
  add_filter( 'map_meta_cap', array( __CLASS__, '_map_meta_cap' ), 10, 4 );
20
  add_action( 'admin_menu', array( __CLASS__, '_remove_taxonomies' ) );
21
- add_action( 'pre_get_posts', array( __CLASS__, '_extend_query_for_category' ) );
22
  }
23
 
24
  public static function edit_cap() {
@@ -183,24 +182,4 @@ abstract class CPT {
183
  'edit-tags.php?taxonomy=' . $t . '&post_type=' . static::type() );
184
  }
185
  }
186
-
187
- public static function _extend_query_for_category( \WP_Query $query ) {
188
- if ( ! $query->is_main_query() ) {
189
- return;
190
- }
191
- if ( is_category() && $query->is_archive() ) {
192
- if ( isset( $query->query_vars['post_type'] ) ) {
193
- $pt = $query->query_vars['post_type'];
194
- if ( ! is_array( $pt ) ) {
195
- $pt = array( $pt );
196
- }
197
- } else {
198
- $pt = array(
199
- 'post'
200
- );
201
- }
202
- $pt[] = static::type();
203
- $query->set( 'post_type', $pt );
204
- }
205
- }
206
  }
18
  add_filter( 'theme_' . static::type() . '_templates', array( __CLASS__, '_filter_templates' ), 10, 2 );
19
  add_filter( 'map_meta_cap', array( __CLASS__, '_map_meta_cap' ), 10, 4 );
20
  add_action( 'admin_menu', array( __CLASS__, '_remove_taxonomies' ) );
 
21
  }
22
 
23
  public static function edit_cap() {
182
  'edit-tags.php?taxonomy=' . $t . '&post_type=' . static::type() );
183
  }
184
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
185
  }