Changeset 1569841 for add-to-any
- Timestamp:
- 01/06/2017 10:58:49 PM (18 months ago)
- Location:
- add-to-any/trunk
- Files:
-
- 2 edited
-
README.txt (modified) (2 diffs)
-
add-to-any.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
add-to-any/trunk/README.txt
r1569341 r1569841 4 4 Requires at least: 3.7 5 5 Tested up to: 4.7 6 Stable tag: 1.7. 36 Stable tag: 1.7.4 7 7 8 8 Share buttons for WordPress including the AddToAny sharing button, Facebook, Twitter, Google+, Pinterest, WhatsApp, many more, and follow icons too. … … 335 335 == Changelog == 336 336 337 = 1.7.4 = 338 * Fix custom/secondary contexts check when the WP query object is unavailable 339 337 340 = 1.7.3 = 338 341 * Add icon size options for the floating share buttons 339 342 * Replace packaged PNG icons with SVG icons 340 * Update se ttings panel343 * Update services in AddToAny settings 341 344 * Update standard placement to prevent the share buttons from automatically appearing in custom/secondary contexts 342 345 * Set feed URL & title in AddToAny Follow widgets using HTML5 data attributes -
add-to-any/trunk/add-to-any.php
r1569341 r1569841 4 4 Plugin URI: https://www.addtoany.com/ 5 5 Description: Share buttons for your pages including AddToAny's universal sharing button, Facebook, Twitter, Google+, Pinterest, WhatsApp and many more. 6 Version: 1.7. 36 Version: 1.7.4 7 7 Author: AddToAny 8 8 Author URI: https://www.addtoany.com/ … … 768 768 global $wp_current_filter; 769 769 770 // Bail if not main query771 if ( ! i s_main_query() && ! in_the_loop() ) {770 // Bail if not in the loop 771 if ( ! in_the_loop() ) { 772 772 // Return early 773 773 return $content; … … 875 875 } 876 876 877 add_filter( 'the_content', 'A2A_SHARE_SAVE_add_to_content', 98 ); 878 add_filter( 'the_excerpt', 'A2A_SHARE_SAVE_add_to_content', 98 ); 877 878 function A2A_SHARE_SAVE_pre_get_posts( $query ) { 879 if ( $query->is_main_query() ) { 880 add_filter( 'the_content', 'A2A_SHARE_SAVE_add_to_content', 98 ); 881 add_filter( 'the_excerpt', 'A2A_SHARE_SAVE_add_to_content', 98 ); 882 } 883 } 884 885 add_action( 'pre_get_posts', 'A2A_SHARE_SAVE_pre_get_posts' ); 879 886 880 887
Note: See TracChangeset
for help on using the changeset viewer.