Changeset 2433013
- Timestamp:
- 12/07/2020 09:55:05 AM (5 years ago)
- Location:
- replybox/trunk
- Files:
-
- 2 edited
-
readme.txt (modified) (2 diffs)
-
replybox.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
replybox/trunk/readme.txt
r2392528 r2433013 3 3 Tags: comment, comments 4 4 Requires at least: 4.7 5 Tested up to: 5.5. 15 Tested up to: 5.5.3 6 6 Requires PHP: 5.4 7 Stable tag: 0.4. 17 Stable tag: 0.4.2 8 8 License: GPLv2 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 75 75 == Changelog == 76 76 77 = 0.4.2 = 78 * Don't show the ReplyBox embed on post types with comments closed. 79 77 80 = 0.4.1 = 78 81 * Don't show the ReplyBox embed on WooCommerce product pages. -
replybox/trunk/replybox.php
r2389074 r2433013 3 3 * Plugin Name: ReplyBox 4 4 * Description: A simple, honest comment system which works everywhere. No ads, no dodgy affiliate links, no fluff. 5 * Version: 0.4. 15 * Version: 0.4.2 6 6 * Author: ReplyBox 7 7 * Author URI: https://getreplybox.com … … 424 424 */ 425 425 protected function should_show_comment_embed( $post ) { 426 $show_embed = is_singular() && post_type_supports( $post->post_type, 'comments' ) ;426 $show_embed = is_singular() && post_type_supports( $post->post_type, 'comments' ) && comments_open( $post ); 427 427 428 428 if ( function_exists( 'is_product' ) && is_product() ) {
Note: See TracChangeset
for help on using the changeset viewer.