Version Description
- Fixes PHP when a static robots.txt file exists.
Download this release
Release Info
Developer | brandondove |
Plugin | Cookie Consent |
Version | 3.0.1 |
Comparing to | |
See all releases |
Code changes from version 3.0 to 3.0.1
- includes/controllers/class-robots-txt.php +7 -2
- readme.txt +5 -2
- uk-cookie-consent.php +2 -2
includes/controllers/class-robots-txt.php
CHANGED
@@ -44,12 +44,17 @@ Allow: /
|
|
44 |
* Fired after rewrite rules are flushed.
|
45 |
* We needed a place where users could trigger this.
|
46 |
*
|
|
|
|
|
47 |
* @return void
|
48 |
*/
|
49 |
-
public static function check_file() {
|
|
|
|
|
|
|
50 |
|
51 |
// Check that the robots file exists.
|
52 |
-
$robots_path =
|
53 |
if ( ! file_exists( $robots_path ) || ! is_file( $robots_path ) ) {
|
54 |
return;
|
55 |
}
|
44 |
* Fired after rewrite rules are flushed.
|
45 |
* We needed a place where users could trigger this.
|
46 |
*
|
47 |
+
* @param WP_Rewrite $rules The WP_Rewrite object.
|
48 |
+
*
|
49 |
* @return void
|
50 |
*/
|
51 |
+
public static function check_file( $rules ) {
|
52 |
+
|
53 |
+
// Include filesystem functionality.
|
54 |
+
require_once ABSPATH . 'wp-admin/includes/file.php';
|
55 |
|
56 |
// Check that the robots file exists.
|
57 |
+
$robots_path = ABSPATH . '/robots.txt';
|
58 |
if ( ! file_exists( $robots_path ) || ! is_file( $robots_path ) ) {
|
59 |
return;
|
60 |
}
|
readme.txt
CHANGED
@@ -3,8 +3,8 @@ Contributors: termly, pixeljar, brandondove, nateconley, jeffreyzinn
|
|
3 |
Tags: cookie law, cookie consent, gdpr, eu privacy directive, cookie banner, cookie compliance, cookie notice, eu cookie law, cookie notification, cookies, wpml, geo ip
|
4 |
Requires at least: 5.2
|
5 |
Requires PHP: 5.6
|
6 |
-
Tested up to: 5.
|
7 |
-
Stable tag: 3.0
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -115,6 +115,9 @@ There is a free version of GDPR Cookie Consent Banner that includes all the basi
|
|
115 |
|
116 |
== Changelog ==
|
117 |
|
|
|
|
|
|
|
118 |
= 3.0 =
|
119 |
Brand new codebase for managing Cookie Consent through the Termly.io platform. New features include:
|
120 |
* Cookie scanning, categorizing and management
|
3 |
Tags: cookie law, cookie consent, gdpr, eu privacy directive, cookie banner, cookie compliance, cookie notice, eu cookie law, cookie notification, cookies, wpml, geo ip
|
4 |
Requires at least: 5.2
|
5 |
Requires PHP: 5.6
|
6 |
+
Tested up to: 5.8
|
7 |
+
Stable tag: 3.0.1
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
115 |
|
116 |
== Changelog ==
|
117 |
|
118 |
+
= 3.0.1 =
|
119 |
+
* Fixes PHP when a static robots.txt file exists.
|
120 |
+
|
121 |
= 3.0 =
|
122 |
Brand new codebase for managing Cookie Consent through the Termly.io platform. New features include:
|
123 |
* Cookie scanning, categorizing and management
|
uk-cookie-consent.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Plugin Name: Termly | GDPR/CCPA Cookie Consent Banner
|
4 |
* Plugin URI: https://termly.io/products/
|
5 |
* Description: Our easy to use cookie consent plugin can assist in your GDPR and ePrivacy Directive compliance efforts.
|
6 |
-
* Version: 3.0
|
7 |
* Author: Termly
|
8 |
* Author URI: https://termly.io/
|
9 |
* License: GPL2
|
@@ -77,7 +77,7 @@ if ( ! function_exists( 'is_wp_version_compatible' ) || ! is_wp_version_compatib
|
|
77 |
define( 'TERMLY_FILE', __FILE__ );
|
78 |
define( 'TERMLY_BASENAME', plugin_basename( __FILE__ ) );
|
79 |
define( 'TERMLY_API_BASE', 'https://app.termly.io/api' );
|
80 |
-
define( 'TERMLY_VERSION', '3.0' );
|
81 |
define( 'TERMLY_URL', plugin_dir_url( __FILE__ ) );
|
82 |
define( 'TERMLY_PATH', plugin_dir_path( __FILE__ ) );
|
83 |
define( 'TERMLY_LANG', TERMLY_PATH . 'lang/' );
|
3 |
* Plugin Name: Termly | GDPR/CCPA Cookie Consent Banner
|
4 |
* Plugin URI: https://termly.io/products/
|
5 |
* Description: Our easy to use cookie consent plugin can assist in your GDPR and ePrivacy Directive compliance efforts.
|
6 |
+
* Version: 3.0.1
|
7 |
* Author: Termly
|
8 |
* Author URI: https://termly.io/
|
9 |
* License: GPL2
|
77 |
define( 'TERMLY_FILE', __FILE__ );
|
78 |
define( 'TERMLY_BASENAME', plugin_basename( __FILE__ ) );
|
79 |
define( 'TERMLY_API_BASE', 'https://app.termly.io/api' );
|
80 |
+
define( 'TERMLY_VERSION', '3.0.1' );
|
81 |
define( 'TERMLY_URL', plugin_dir_url( __FILE__ ) );
|
82 |
define( 'TERMLY_PATH', plugin_dir_path( __FILE__ ) );
|
83 |
define( 'TERMLY_LANG', TERMLY_PATH . 'lang/' );
|