Commit d214d19f authored by lucha's avatar lucha Committed by lechuck

enable theme updated when AI_CRON_SCRIPT is set

parent e787b2b4
......@@ -18,7 +18,7 @@ Author URI: http://johnblackbourn.com/
GNU General Public License for more details.
*/
if (!defined('AI_CRON_SCRIPT')) {
# 2.8 to 3.0:
remove_action( 'load-themes.php', 'wp_update_themes' );
remove_action( 'load-update.php', 'wp_update_themes' );
......@@ -29,5 +29,5 @@ add_filter( 'pre_transient_update_themes', create_function( '$a', "return null;"
# 3.0:
remove_action( 'load-update-core.php', 'wp_update_themes' );
add_filter( 'pre_site_transient_update_themes', create_function( '$a', "return null;" ) );
}
?>
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment