Quantcast
Channel: BulletProof Security Forum » All Posts
Viewing all articles
Browse latest Browse all 12488

Reply To: Error: Unable to delete the _site_transient_update_plugins option value from your database

$
0
0

I downloaded MainWP Child and looked at the code.  If I am understanding this code correctly the code says:  if the filterFunction variable does not equal null then set pre_site_transient_update_plugins to null.  And the other condition says:  if the filterFunction variable does not equal null then remove the filter on pre_site_transient_update_plugins.  In other words, make sure that pre_site_transient_update_plugins always equals null so that plugin updates will never be displayed.

private $filterFunction = null;

if ($this->filterFunction != null) add_filter( 'pre_site_transient_update_plugins', $this->filterFunction , 99);

if ($this->filterFunction != null) remove_filter( 'pre_site_transient_update_plugins', $this->filterFunction , 99);

Viewing all articles
Browse latest Browse all 12488

Trending Articles