Version Description
(22 December 2020) =
- Fixed an issue where Fatal error was thrown when WooCommerce was not activate
- Added compatibility with WPML
Download this release
Release Info
Developer | Dhruvin |
Plugin | WP Content Copy Protection |
Version | 2.0.3 |
Comparing to | |
See all releases |
Code changes from version 2.0.2 to 2.0.3
- includes/class-protection.php +1 -1
- includes/class-settings.php +1 -0
- includes/views/no-script.php +1 -1
- readme.txt +6 -1
- wpccpl.php +9 -5
includes/class-protection.php
CHANGED
@@ -189,7 +189,7 @@ class Protection {
|
|
189 |
|
190 |
// WooCommerce Pages - Needs extra checks.
|
191 |
$woocommerce_shop_page = get_option( 'woocommerce_shop_page_id' );
|
192 |
-
$is_excluded_shop_page = is_shop() && in_array( $woocommerce_shop_page, $excluded_pages, true );
|
193 |
|
194 |
if ( $is_excluded_page || $is_excluded_shop_page ) {
|
195 |
return true;
|
189 |
|
190 |
// WooCommerce Pages - Needs extra checks.
|
191 |
$woocommerce_shop_page = get_option( 'woocommerce_shop_page_id' );
|
192 |
+
$is_excluded_shop_page = function_exists( 'is_shop' ) && is_shop() && in_array( $woocommerce_shop_page, $excluded_pages, true );
|
193 |
|
194 |
if ( $is_excluded_page || $is_excluded_shop_page ) {
|
195 |
return true;
|
includes/class-settings.php
CHANGED
@@ -525,6 +525,7 @@ class Settings {
|
|
525 |
'ignore_sticky_posts' => 1,
|
526 |
'posts_per_page' => 10,
|
527 |
'post_type' => $search_type,
|
|
|
528 |
];
|
529 |
|
530 |
$search_results = new \WP_Query( $search_args );
|
525 |
'ignore_sticky_posts' => 1,
|
526 |
'posts_per_page' => 10,
|
527 |
'post_type' => $search_type,
|
528 |
+
'suppress_filters' => true,
|
529 |
];
|
530 |
|
531 |
$search_results = new \WP_Query( $search_args );
|
includes/views/no-script.php
CHANGED
@@ -19,7 +19,7 @@
|
|
19 |
<div style="position:fixed; top:0px; left:0px; z-index:3000; height:100%; width:100%; background-color:#FFFFFF">
|
20 |
<br/><br/>
|
21 |
<div style="font-family: Tahoma; font-size: 14px; background-color:#FFFFCC; border: 1pt solid Black; padding: 10pt;">
|
22 |
-
Sorry, you have Javascript Disabled! To see this page as it is meant to appear, please enable your Javascript!
|
23 |
</div>
|
24 |
</div>
|
25 |
</noscript>
|
19 |
<div style="position:fixed; top:0px; left:0px; z-index:3000; height:100%; width:100%; background-color:#FFFFFF">
|
20 |
<br/><br/>
|
21 |
<div style="font-family: Tahoma; font-size: 14px; background-color:#FFFFCC; border: 1pt solid Black; padding: 10pt;">
|
22 |
+
Sorry, you have Javascript Disabled! To see this page as it is meant to appear, please enable your Javascript!
|
23 |
</div>
|
24 |
</div>
|
25 |
</noscript>
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Contributors: tychesoftwares, dhruvin
|
|
4 |
Donate link: https://www.paypal.me/TycheSoftwares
|
5 |
Tags: protection, copyright, theft, no right click, content protection, image protection, image protect, copyprotect, security, copy protection, protect blog, plagiarism, duplicate, seo, context menu
|
6 |
Requires at least: 3.0
|
7 |
-
Tested up to: 5.
|
8 |
Stable tag: trunk
|
9 |
License: GPLv2 or Later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
@@ -168,6 +168,11 @@ This plugin inheritently disables right click/copy/save functions on your defaul
|
|
168 |
|
169 |
== Changelog ==
|
170 |
|
|
|
|
|
|
|
|
|
|
|
171 |
= 2.0.2 (03 May 2020) =
|
172 |
|
173 |
* Fixed an issue where the favicons were not getting displayed on the site.
|
4 |
Donate link: https://www.paypal.me/TycheSoftwares
|
5 |
Tags: protection, copyright, theft, no right click, content protection, image protection, image protect, copyprotect, security, copy protection, protect blog, plagiarism, duplicate, seo, context menu
|
6 |
Requires at least: 3.0
|
7 |
+
Tested up to: 5.6
|
8 |
Stable tag: trunk
|
9 |
License: GPLv2 or Later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
168 |
|
169 |
== Changelog ==
|
170 |
|
171 |
+
= 2.0.3 (22 December 2020) =
|
172 |
+
|
173 |
+
* Fixed an issue where Fatal error was thrown when WooCommerce was not activate
|
174 |
+
* Added compatibility with WPML
|
175 |
+
|
176 |
= 2.0.2 (03 May 2020) =
|
177 |
|
178 |
* Fixed an issue where the favicons were not getting displayed on the site.
|
wpccpl.php
CHANGED
@@ -5,13 +5,13 @@
|
|
5 |
* Description: WP Content Copy Protection prevents plagiarism and protects your valuable online content (such as source code, text and images) from being copied illegally. Copy methods are disabled via mouse and keyboard.
|
6 |
* Author: Tyche Softwares
|
7 |
* Author URI: https://www.tychesoftwares.com/
|
8 |
-
* Version: 2.0.
|
9 |
* Text Domain: wpccp
|
10 |
* Domain Path: /languages
|
11 |
* Tags: content, protection,
|
12 |
* Requires at least: 3.0.1
|
13 |
-
* Tested up to: 5.
|
14 |
-
* Stable tag: 2.0.
|
15 |
* License: GPLv2 or later
|
16 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.html/
|
17 |
*
|
@@ -27,7 +27,7 @@ if ( ! defined( 'WPINC' ) ) {
|
|
27 |
*/
|
28 |
// Plugin version.
|
29 |
if ( ! defined( 'WPCCP_VERSION' ) ) {
|
30 |
-
define( 'WPCCP_VERSION', '2.0.
|
31 |
}
|
32 |
// Plugin Root File.
|
33 |
if ( ! defined( 'WPCCP_PLUGIN_FILE' ) ) {
|
@@ -46,7 +46,11 @@ if ( ! defined( 'WPCCP_PLUGIN_BASENAME' ) ) {
|
|
46 |
define( 'WPCCP_PLUGIN_BASENAME', plugin_basename( WPCCP_PLUGIN_FILE ) );
|
47 |
}
|
48 |
// Autoloader.
|
49 |
-
|
|
|
|
|
|
|
|
|
50 |
|
51 |
// Bootstrap WPCCP.
|
52 |
use TycheSoftwares\Wpccp\Wpccp;
|
5 |
* Description: WP Content Copy Protection prevents plagiarism and protects your valuable online content (such as source code, text and images) from being copied illegally. Copy methods are disabled via mouse and keyboard.
|
6 |
* Author: Tyche Softwares
|
7 |
* Author URI: https://www.tychesoftwares.com/
|
8 |
+
* Version: 2.0.3
|
9 |
* Text Domain: wpccp
|
10 |
* Domain Path: /languages
|
11 |
* Tags: content, protection,
|
12 |
* Requires at least: 3.0.1
|
13 |
+
* Tested up to: 5.6
|
14 |
+
* Stable tag: 2.0.3
|
15 |
* License: GPLv2 or later
|
16 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.html/
|
17 |
*
|
27 |
*/
|
28 |
// Plugin version.
|
29 |
if ( ! defined( 'WPCCP_VERSION' ) ) {
|
30 |
+
define( 'WPCCP_VERSION', '2.0.3' );
|
31 |
}
|
32 |
// Plugin Root File.
|
33 |
if ( ! defined( 'WPCCP_PLUGIN_FILE' ) ) {
|
46 |
define( 'WPCCP_PLUGIN_BASENAME', plugin_basename( WPCCP_PLUGIN_FILE ) );
|
47 |
}
|
48 |
// Autoloader.
|
49 |
+
if ( file_exists( __DIR__ . '/vendor/autoload.php' ) ) {
|
50 |
+
require __DIR__ . '/vendor/autoload.php';
|
51 |
+
} else {
|
52 |
+
require 'vendor/autoload.php';
|
53 |
+
}
|
54 |
|
55 |
// Bootstrap WPCCP.
|
56 |
use TycheSoftwares\Wpccp\Wpccp;
|