Changeset 1455710
- Timestamp:
- 07/16/2016 12:13:03 PM (10 years ago)
- Location:
- copyfight
- Files:
-
- 66 added
- 4 edited
-
tags/1.5.5 (added)
-
tags/1.5.5/LICENSE.txt (added)
-
tags/1.5.5/_inc (added)
-
tags/1.5.5/_inc/css (added)
-
tags/1.5.5/_inc/css/copyfight-admin.css (added)
-
tags/1.5.5/_inc/css/copyfight-admin.min.css (added)
-
tags/1.5.5/_inc/css/copyfight-cdn.css (added)
-
tags/1.5.5/_inc/css/copyfight-cdn.min.css (added)
-
tags/1.5.5/_inc/css/copyfight.css (added)
-
tags/1.5.5/_inc/css/copyfight.min.css (added)
-
tags/1.5.5/_inc/css/copyfight.php (added)
-
tags/1.5.5/_inc/css/genericons.css (added)
-
tags/1.5.5/_inc/css/genericons.min.css (added)
-
tags/1.5.5/_inc/css/noprint.css (added)
-
tags/1.5.5/_inc/css/noprint.min.css (added)
-
tags/1.5.5/_inc/css/print.css (added)
-
tags/1.5.5/_inc/css/print.min.css (added)
-
tags/1.5.5/_inc/fonts (added)
-
tags/1.5.5/_inc/fonts/Genericons.ttf (added)
-
tags/1.5.5/_inc/fonts/Genericons.woff (added)
-
tags/1.5.5/_inc/img (added)
-
tags/1.5.5/_inc/img/certificate-background.png (added)
-
tags/1.5.5/_inc/img/copyfight-business-plan.png (added)
-
tags/1.5.5/_inc/img/copyfight-dashicon-01.svg (added)
-
tags/1.5.5/_inc/img/copyfight-dashicon.data (added)
-
tags/1.5.5/_inc/img/copyfight-dashicon.svg (added)
-
tags/1.5.5/_inc/img/copyfight-enterprise-plan.png (added)
-
tags/1.5.5/_inc/img/copyfight-freemium-plan.png (added)
-
tags/1.5.5/_inc/img/copyfight-logo-color.svg (added)
-
tags/1.5.5/_inc/img/copyfight-logo-dark.svg (added)
-
tags/1.5.5/_inc/img/copyfight-logo-light.svg (added)
-
tags/1.5.5/_inc/img/copyfight-logo.png (added)
-
tags/1.5.5/_inc/img/copyfight-premium-plan.png (added)
-
tags/1.5.5/_inc/img/icn-green.png (added)
-
tags/1.5.5/_inc/img/icn-grey-black.png (added)
-
tags/1.5.5/_inc/img/icn-red.png (added)
-
tags/1.5.5/_inc/img/icn-yellow.png (added)
-
tags/1.5.5/_inc/js (added)
-
tags/1.5.5/_inc/js/copyfight-admin.js (added)
-
tags/1.5.5/_inc/js/copyfight-admin.min.js (added)
-
tags/1.5.5/_inc/js/copyfight.js (added)
-
tags/1.5.5/_inc/js/copyfight.min.js (added)
-
tags/1.5.5/cache (added)
-
tags/1.5.5/cache/fontlist.txt (added)
-
tags/1.5.5/cache/index.php (added)
-
tags/1.5.5/class.copyfight-admin.php (added)
-
tags/1.5.5/class.copyfight.php (added)
-
tags/1.5.5/copyfight.php (added)
-
tags/1.5.5/index.php (added)
-
tags/1.5.5/languages (added)
-
tags/1.5.5/languages/copyfight-de_DE.mo (added)
-
tags/1.5.5/languages/copyfight-de_DE.po (added)
-
tags/1.5.5/languages/copyfight-es_ES.mo (added)
-
tags/1.5.5/languages/copyfight-es_ES.po (added)
-
tags/1.5.5/languages/copyfight-nl_NL.mo (added)
-
tags/1.5.5/languages/copyfight-nl_NL.po (added)
-
tags/1.5.5/languages/copyfight-zh_CN.mo (added)
-
tags/1.5.5/languages/copyfight-zh_CN.po (added)
-
tags/1.5.5/readme.txt (added)
-
tags/1.5.5/uninstall.php (added)
-
tags/1.5.5/views (added)
-
tags/1.5.5/views/config.php (added)
-
tags/1.5.5/views/index.php (added)
-
tags/1.5.5/views/notice.php (added)
-
tags/1.5.5/views/plans.php (added)
-
tags/1.5.5/widgets.php (added)
-
trunk/class.copyfight-admin.php (modified) (3 diffs)
-
trunk/class.copyfight.php (modified) (2 diffs)
-
trunk/copyfight.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
copyfight/trunk/class.copyfight-admin.php
r1447113 r1455710 74 74 75 75 add_action( 'admin_notices', array( COPYFIGHT_CLASS_ADMIN, 'copyfight_api_key_notice' ) ); 76 add_action( 'admin_notices', array( COPYFIGHT_CLASS_ADMIN, 'copyfight_activate_transient' ) ); 76 77 add_action( 'admin_notices', array( COPYFIGHT_CLASS_ADMIN, 'copyfight_transient' ) ); 77 78 } … … 130 131 } 131 132 133 public static function copyfight_activate_transient() { 134 $message = get_transient( 'copyfight_activate_transient' ); 135 delete_transient( 'copyfight_activate_transient' ); 136 $html = ''; 137 if ( $message ) { 138 $html = "<div class='error notice is-dismissible'><p>"; 139 $html .= "{$message}"; 140 $html .= "</p></div>"; 141 } 142 echo $html; 143 } 144 132 145 public static function copyfight_transient() { 133 146 $post_id = get_transient( 'copyfight_transient' ); … … 167 180 return $response->apikey; 168 181 } else { 182 set_transient( 'copyfight_activate_transient', $response->error, 60 ); 169 183 return ''; 170 184 } -
copyfight/trunk/class.copyfight.php
r1447113 r1455710 39 39 add_filter( 'the_content_feed', array( COPYFIGHT_CLASS, 'copyfight_the_content_feed' ) ); 40 40 add_filter( 'the_excerpt_rss', array( COPYFIGHT_CLASS, 'copyfight_the_excerpt_rss' ) ); 41 add_filter( 'language_attributes', array( COPYFIGHT_CLASS, 'copyfight_language_attributes' ) ); 41 42 42 43 add_shortcode( 'copyfight', array( COPYFIGHT_CLASS, 'copyfight_shortcode' ) ); … … 270 271 } 271 272 273 public static function copyfight_language_attributes( $content ) { 274 global $post; 275 $copyfight_content = get_post_meta( $post->ID, '_copyfight_content', true ); 276 $copyfight_status = get_post_meta( $post->ID, '_copyfight_status', true ); 277 if ( strlen( $copyfight_content ) && $copyfight_status == 'enabled' && is_singular() ) { 278 $content = ''; 279 } 280 return $content; 281 } 282 272 283 /** 273 284 * Copyfight shortcode -
copyfight/trunk/copyfight.php
r1447113 r1455710 4 4 Plugin URI: https://getcopyfight.com/ 5 5 Description: Copyright protection 6 Version: 1.5. 46 Version: 1.5.5 7 7 Author: Copyfight 8 8 Author URI: https://getcopyfight.com/ … … 35 35 add_action( 'plugins_loaded', 'copyfight_textdomain' ); 36 36 37 define( 'COPYFIGHT_VERSION', '1.5. 4' );37 define( 'COPYFIGHT_VERSION', '1.5.5' ); 38 38 define( 'COPYFIGHT_MINIMUM_WP_VERSION', '3.3.0' ); 39 39 define( 'COPYFIGHT_PLUGIN_URL', plugin_dir_url( __FILE__ ) ); -
copyfight/trunk/readme.txt
r1447113 r1455710 7 7 Requires at least: 3.3.0 8 8 Tested up to: 4.5.3 9 Stable tag: 1.5. 49 Stable tag: 1.5.5 10 10 License: GPLv2 or later 11 11 License URI: http://www.gnu.org/licenses/gpl-2.0.html
Note: See TracChangeset
for help on using the changeset viewer.