Changeset 3103137
- Timestamp:
- 06/15/2024 05:03:05 PM (21 months ago)
- Location:
- shariff
- Files:
-
- 3 edited
- 35 copied
-
tags/4.6.14 (copied) (copied from shariff/trunk)
-
tags/4.6.14/admin/admin-menu.php (copied) (copied from shariff/trunk/admin/admin-menu.php) (1 diff)
-
tags/4.6.14/admin/admin-metabox.php (copied) (copied from shariff/trunk/admin/admin-metabox.php)
-
tags/4.6.14/admin/admin-notices.php (copied) (copied from shariff/trunk/admin/admin-notices.php)
-
tags/4.6.14/bitcoin.php (copied) (copied from shariff/trunk/bitcoin.php)
-
tags/4.6.14/changelog.txt (copied) (copied from shariff/trunk/changelog.txt)
-
tags/4.6.14/css/shariff.css (copied) (copied from shariff/trunk/css/shariff.css)
-
tags/4.6.14/css/shariff.min.css (copied) (copied from shariff/trunk/css/shariff.min.css)
-
tags/4.6.14/images/borderradius.png (copied) (copied from shariff/trunk/images/borderradius.png)
-
tags/4.6.14/images/defaultHint.png (copied) (copied from shariff/trunk/images/defaultHint.png)
-
tags/4.6.14/images/shariff_designs.png (copied) (copied from shariff/trunk/images/shariff_designs.png)
-
tags/4.6.14/includes/class-shariff-widget.php (copied) (copied from shariff/trunk/includes/class-shariff-widget.php)
-
tags/4.6.14/includes/phpqrcode.php (copied) (copied from shariff/trunk/includes/phpqrcode.php)
-
tags/4.6.14/js/shariff-media.js (copied) (copied from shariff/trunk/js/shariff-media.js)
-
tags/4.6.14/js/shariff-media.min.js (copied) (copied from shariff/trunk/js/shariff-media.min.js)
-
tags/4.6.14/js/shariff-popup.js (copied) (copied from shariff/trunk/js/shariff-popup.js)
-
tags/4.6.14/js/shariff-popup.min.js (copied) (copied from shariff/trunk/js/shariff-popup.min.js)
-
tags/4.6.14/js/shariff.js (copied) (copied from shariff/trunk/js/shariff.js)
-
tags/4.6.14/js/shariff.min.js (copied) (copied from shariff/trunk/js/shariff.min.js)
-
tags/4.6.14/license.txt (copied) (copied from shariff/trunk/license.txt)
-
tags/4.6.14/readme.txt (copied) (copied from shariff/trunk/readme.txt) (2 diffs)
-
tags/4.6.14/services/shariff-bitcoin.php (copied) (copied from shariff/trunk/services/shariff-bitcoin.php)
-
tags/4.6.14/services/shariff-info.php (copied) (copied from shariff/trunk/services/shariff-info.php)
-
tags/4.6.14/services/shariff-mailto.php (copied) (copied from shariff/trunk/services/shariff-mailto.php)
-
tags/4.6.14/services/shariff-patreon.php (copied) (copied from shariff/trunk/services/shariff-patreon.php)
-
tags/4.6.14/services/shariff-paypal.php (copied) (copied from shariff/trunk/services/shariff-paypal.php)
-
tags/4.6.14/services/shariff-paypalme.php (copied) (copied from shariff/trunk/services/shariff-paypalme.php)
-
tags/4.6.14/services/shariff-pocket.php (copied) (copied from shariff/trunk/services/shariff-pocket.php)
-
tags/4.6.14/services/shariff-printer.php (copied) (copied from shariff/trunk/services/shariff-printer.php)
-
tags/4.6.14/services/shariff-rss.php (copied) (copied from shariff/trunk/services/shariff-rss.php)
-
tags/4.6.14/services/shariff-wallabag.php (copied) (copied from shariff/trunk/services/shariff-wallabag.php)
-
tags/4.6.14/shariff.php (copied) (copied from shariff/trunk/shariff.php) (4 diffs)
-
tags/4.6.14/uninstall.php (copied) (copied from shariff/trunk/uninstall.php)
-
tags/4.6.14/updates.php (copied) (copied from shariff/trunk/updates.php)
-
tags/4.6.14/wpml-config.xml (copied) (copied from shariff/trunk/wpml-config.xml)
-
trunk/admin/admin-menu.php (modified) (1 diff)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/shariff.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
shariff/tags/4.6.14/admin/admin-menu.php
r3069111 r3103137 13 13 14 14 // Set services that have a share count API / backend. 15 $shariff3uu_services_backend = array( 'facebook', 'pinterest', 'reddit', 'tumblr', 'vk', 'odnoklassniki', 'buffer' ); 15 #$shariff3uu_services_backend = array( 'facebook', 'pinterest', 'reddit', 'tumblr', 'vk', 'odnoklassniki', 'buffer' ); 16 $shariff3uu_services_backend = array( 'facebook', 'pinterest', 'tumblr', 'vk', 'odnoklassniki', 'buffer' ); 16 17 17 18 // Adds the actions for the admin page. -
shariff/tags/4.6.14/readme.txt
r3069111 r3103137 5 5 Requires PHP: 7.4 6 6 Tested up to: 6.5 7 Stable tag: 4.6.1 37 Stable tag: 4.6.14 8 8 License: MIT 9 9 License URI: http://opensource.org/licenses/mit … … 145 145 146 146 == Changelog == 147 = 4.6.14 = 148 - removed Reddit from the share counts because requests without API keys are 149 blocked now 150 - fix to avoid unauthenticated local file inclusion. Many thanks to haidv35 151 147 152 = 4.6.13 = 148 153 - cleanup code (please check the basic options menu. We changed some -
shariff/tags/4.6.14/shariff.php
r3069111 r3103137 35 35 function shariff3uu_update() { 36 36 // Adjust code version. 37 $code_version = '4.6.1 3';37 $code_version = '4.6.14'; 38 38 39 39 // Get basic options. … … 403 403 $share_counts = array(); 404 404 405 // what are valid service names for the include? 406 $valid_services= explode( '|', $shariff3uu['services'] ); 407 405 408 // Loop through all desired services. 406 409 foreach ( $service_array as $service ) { 410 // include/execute only valid services 411 if ( !in_array( $service , $valid_services, true )===true ) continue; 412 407 413 // Only include services that are not disabled. 408 414 if ( ! empty( $service ) && ( ! isset( $shariff3uu['disable'][ $service ] ) || ( isset( $shariff3uu['disable'][ $service ] ) && 0 === $shariff3uu['disable'][ $service ] ) ) ) { … … 531 537 532 538 /** Registers activation hook to start cron job after an update. */ 533 register_activation_hook( __FILE__ , 'shariff3uu_fill_cache_schedule' );539 register_activation_hook( __FILE__ , 'shariff3uu_fill_cache_schedule' ); 534 540 535 541 /** … … 1587 1593 } 1588 1594 } 1589 register_deactivation_hook( __FILE__ , 'shariff3uu_deactivate' );1595 register_deactivation_hook( __FILE__ , 'shariff3uu_deactivate' ); 1590 1596 1591 1597 /** -
shariff/trunk/admin/admin-menu.php
r3069111 r3103137 13 13 14 14 // Set services that have a share count API / backend. 15 $shariff3uu_services_backend = array( 'facebook', 'pinterest', 'reddit', 'tumblr', 'vk', 'odnoklassniki', 'buffer' ); 15 #$shariff3uu_services_backend = array( 'facebook', 'pinterest', 'reddit', 'tumblr', 'vk', 'odnoklassniki', 'buffer' ); 16 $shariff3uu_services_backend = array( 'facebook', 'pinterest', 'tumblr', 'vk', 'odnoklassniki', 'buffer' ); 16 17 17 18 // Adds the actions for the admin page. -
shariff/trunk/readme.txt
r3069111 r3103137 5 5 Requires PHP: 7.4 6 6 Tested up to: 6.5 7 Stable tag: 4.6.1 37 Stable tag: 4.6.14 8 8 License: MIT 9 9 License URI: http://opensource.org/licenses/mit … … 145 145 146 146 == Changelog == 147 = 4.6.14 = 148 - removed Reddit from the share counts because requests without API keys are 149 blocked now 150 - fix to avoid unauthenticated local file inclusion. Many thanks to haidv35 151 147 152 = 4.6.13 = 148 153 - cleanup code (please check the basic options menu. We changed some -
shariff/trunk/shariff.php
r3069111 r3103137 35 35 function shariff3uu_update() { 36 36 // Adjust code version. 37 $code_version = '4.6.1 3';37 $code_version = '4.6.14'; 38 38 39 39 // Get basic options. … … 403 403 $share_counts = array(); 404 404 405 // what are valid service names for the include? 406 $valid_services= explode( '|', $shariff3uu['services'] ); 407 405 408 // Loop through all desired services. 406 409 foreach ( $service_array as $service ) { 410 // include/execute only valid services 411 if ( !in_array( $service , $valid_services, true )===true ) continue; 412 407 413 // Only include services that are not disabled. 408 414 if ( ! empty( $service ) && ( ! isset( $shariff3uu['disable'][ $service ] ) || ( isset( $shariff3uu['disable'][ $service ] ) && 0 === $shariff3uu['disable'][ $service ] ) ) ) { … … 531 537 532 538 /** Registers activation hook to start cron job after an update. */ 533 register_activation_hook( __FILE__ , 'shariff3uu_fill_cache_schedule' );539 register_activation_hook( __FILE__ , 'shariff3uu_fill_cache_schedule' ); 534 540 535 541 /** … … 1587 1593 } 1588 1594 } 1589 register_deactivation_hook( __FILE__ , 'shariff3uu_deactivate' );1595 register_deactivation_hook( __FILE__ , 'shariff3uu_deactivate' ); 1590 1596 1591 1597 /**
Note: See TracChangeset
for help on using the changeset viewer.