Bug in getTOC() that causes DB updates

[ad_1]

Using query monitor we’ve seen that this plugin is updating the options table row with option_name=”ez-toc-list” at every page view. This happens even when we are not logged in, so it’s at every page view.

To us, this doesn’t make a lot of sense and it seems like a clear bug.

This is the stack trace we are seeing:

update_option()
ezTOC_Post->getTOC()
ezTOC::the_content()
apply_filters('the_content')
the_content()
load_template('wp-content/themes/astra/template-parts/single/single-layout.php')
locate_template()
get_template_part('template-parts/single/single-layout')
astra_entry_content_single_template()
do_action('astra_entry_content_single')
astra_entry_content_single()
load_template('wp-content/themes/astra/template-parts/content-single.php')
locate_template()
get_template_part('template-parts/content','single')
Astra_Loop->template_parts_post()
do_action('astra_template_parts_content')
Astra_Loop->loop_markup()
do_action('astra_content_loop')
astra_content_loop()

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer