net
Forum Replies Created
-
Many thanks for your prompt reply Ronald!
Ah, it seems that this feature has nothing to do with your plugin, but with functionality of the previous theme we were using.
Instead of displaying all comments and appropriate form right away (inline on the page), there was a “Leave a comment” or “Show Comments (%d)” button. When you click such button, all comments and comment form were displayed via Ajax right on the page.
Maybe this should be a feature request?
@wfpeter any update on this?
It is pretty annoying that every 10 days have to make system changes to update your plugin’s database.
Something is wrong with the versioning, it keeps displaying that version 1.23.1 is not installed after the update.
Many thanks @daemonic79, that’s a great workaround!
Hopefully Wordfence will fix this soon.
@wfpeter @daemonic79 similar thread exists for more than 2 months: https://www.ads-software.com/support/topic/rules-not-updating-5/#post-16770743
It’s funny that security plugin has security issues.
Forum: Plugins
In reply to: [NextScripts: Social Networks Auto-Poster] This plugin is dead@lordfaust did you find alternative plugin?
Forum: Plugins
In reply to: [Redis Object Cache] Sticky posts issues when Redis cache is fullAfter replacing
$wpdb->update
withwp_update_post()
the issue is solved.Many thanks for your help Till.
Maybe to add explanation to FAQ: https://github.com/rhubarbgroup/redis-cache/blob/develop/FAQ.md
Forum: Plugins
In reply to: [Redis Object Cache] Sticky posts issues when Redis cache is fullWhere’s the catch?
Noticed similar calls in some popular plugins, too. Will they work properly with Redis or not?
$result = $this->database->update( $this->get_table_name(), $data, $where, $format, $where_format );
$wpdb->update( $this->db_table_caches, [ 'expiration' => $expiration, 'deleted' => 0, 'cleaned' => (int) $cleaned, ], [ 'cache_id' => $cache_id ], [ '%s', '%d', '%d' ], [ '%d' ] );
$wpdb->update( $wpdb->term_taxonomy, array( 'count' => $rowCount->total, ), array( 'term_taxonomy_id' => $rowCount->term_taxonomy_id, ) );
Forum: Plugins
In reply to: [Redis Object Cache] Sticky posts issues when Redis cache is fullIt’s a custom plugin and menu_order field is updated using:
$wpdb->update($wpdb->posts, array( 'menu_order' => $start ), array( 'ID' => $post->ID) );
Forum: Plugins
In reply to: [Redis Object Cache] Sticky posts issues when Redis cache is fullPlugin for changing sticky posts order via ajax.
Database gets updated, but Redis seems to be unaware of that.
Forum: Plugins
In reply to: [Redis Object Cache] Sticky posts issues when Redis cache is fullAfter further investigation, it seems the issue is related to menu_order field of sticky posts and not about making posts (un)sticky.
We do have plugin to change menu_order field of sticky posts. That field is changed using $wpdb->update calls.
This works fine until Redis cache is full.
But even when it is not full, noticed that values shown in “Order” column (i.e. menu_order) do not correspond to values in database when viewing /wp-admin/edit.php?post_type=post&show_sticky=1
“Order” column is displayed using the following code:
add_filter('manage_posts_columns', 'posts_columns_order', 5); add_action('manage_posts_custom_column', 'posts_custom_columns_order', 5, 2); function posts_columns_order($defaults){ $defaults['menu_order'] = __('Order'); return $defaults; } function posts_custom_columns_order($column_name, $id){ global $post; if($column_name === 'menu_order'){ $order = $post->menu_order; echo $order; } }
Even when editing post using /wp-admin/post.php?post=…&action=edit, Order field displays different value than the one in the database. How’s that even possible?
Using the following code to display it:
add_action( 'admin_init', 'posts_order_wpse_91866' ); function posts_order_wpse_91866() { add_post_type_support( 'post', 'page-attributes' ); }
I confirm it is fixed, many thanks!
Tested version 1.18.2. Cloudflare box refreshes two times when opening ajax comment form now, so this code is no longer needed:
$submit_after .= '<script type="text/javascript">jQuery(document).ajaxComplete(function() { setTimeout(function() { turnstile.render("#cf-turnstile-c-'.$unique_id.'"); }, 1000); });</script>';
I am using the code provided at https://www.ads-software.com/support/topic/doesnt-work-when-comment-form-is-displayed-via-ajax/#post-16528146 and it works perfectly. No need for delayed JS function, but forcing to include scripts/styles on AJAX request.
Finally managed to update the plugin. I see such line in the code.
But it does not work, seeing in the console:
Uncaught ReferenceError: turnstile is not defined at :1:68
Please check my code above.