Search Results for 'code'
-
Search Results
-
Topic: Widget display problems
wordpress 5.3
bbpress 2.6.1Hello,
I am noticing in the last few days and that is even prior to upgrading to wordpress 5.3 the bbpreply widget which lists the recent replies does not list the replies CLEARLY as it used to.After the listing there is line now added next to all new replies that saysâ<span class=âdashicons dashicons-visibility wvrbbp-fav-subâ style=âfont-size:80%;vertical-align:middle;â></span>â.
This added line obviously is taking away the clean clear quality of the webpage making it look ugly like a coded page. Please advise. Any help is appreciated. Thank you.
I had a look at the code in 2.6.1.
Lines 618 – 622 in functions.php in replies folder:
/** Reply Bad Words *******************************************************/ if ( ! bbp_check_for_moderation( $anonymous_data, $reply_author, $reply_title, $reply_content, true ) ) { bbp_add_error( 'bbp_reply_moderation', __( '<strong>ERROR</strong>: Your reply cannot be edited at this time.', 'bbpress' ) ); }Notice that it makes use of the
bbp_add_errorcall to notify the user? Well, look at lines 624 – 636:/** Reply Status **********************************************************/
// Maybe put into moderation if ( ! bbp_check_for_moderation( $anonymous_data, $reply_author, $reply_title, $reply_content ) ) { // Set post status to pending if public if ( bbp_get_public_status_id() === $reply->post_status ) { $reply_status = bbp_get_pending_status_id(); } // Use existing post_status } else { $reply_status = $reply->post_status; }There does not appear to be any code to flag the user. Either way, if a “reply” is flagged as pending (for example, I insert 3 images) it just vanishes with no feedback to the user. This also happens here in this forum.
I confess I don’t know the code enough and could be barking up the wrong tree.
I upgraded to 2.6.1 and my topic replies are not being displayed. Debug toolbar shows that there are two database errors being thrown, both like this:
SELECT COUNT(wp_posts.ID) FROM wp_posts FORCE INDEX (PRIMARY, post_parent) LEFT JOIN wp_postmeta ON wp_postmeta.post_id = wp_posts.ID AND wp_postmeta.meta_key = '_bbp_reply_to' WHERE 1=1 AND (wp_posts.ID = 76 OR wp_posts.post_parent = 76) AND wp_posts.post_type IN ('topic', 'reply') AND wp_postmeta.meta_key IS NULL AND (wp_posts.post_status = 'publish') ORDER BY wp_posts.post_date ASC Table 'site_name.wp_posts' doesn't existThe list of forums and topics works fine.
Like many WordPress installations I have a custom prefix for my database tables (“wp_****_”) and it appears that bbPress 2.6.1 is using that for some queries and not others.