Support » Plugin: Network Plugin Auditor » not understanding your transient clearing functions

  • Resolved boyington

    (@bottapress)


    Hi,

    I was just reading your code to find out why the network plugins page was exceeding the PHP max execution time (see this topic) and found these two clearing transient functions:

    function clear_plugin_transient( $plugin, $network_deactivating ) {
            global $wpdb;
            $blog_prefix = self::get_blog_prefix();
    
            delete_site_transient( 'auditor_active_plugins' );
            return;
        }
    
        function clear_theme_transient( $new_name, $new_theme ) {
            global $wpdb;
            $blog_prefix = self::get_blog_prefix();
    
            delete_site_transient( 'auditor_active_themes' );
            return;
        }

    I see that you define $blog_prefix in each function without using it after.

    Does it need some code cleaning or am I missing something ?

    https://wordpress.org/plugins/network-plugin-auditor/

Viewing 1 replies (of 1 total)
  • Hey Boyington,

    Sorry for the silence, I stopped getting notifications a while back it seems.

    The 1.8.1 version cleans up those extra lines. They were vestigial cruft from an older version.

    – Kathy

Viewing 1 replies (of 1 total)
  • The topic ‘not understanding your transient clearing functions’ is closed to new replies.