[wp-cvs] wordpress/wp-admin admin-functions.php, 1.47,
1.48 themes.php, 1.4, 1.5
Ryan Boren
rboren at users.sourceforge.net
Wed Oct 6 06:20:54 UTC 2004
Update of /cvsroot/cafelog/wordpress/wp-admin
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29434/wp-admin
Modified Files:
admin-functions.php themes.php
Log Message:
Add switch_theme action. Cleanup staticize-reloaded's cache when theme is switched.
Index: admin-functions.php
===================================================================
RCS file: /cvsroot/cafelog/wordpress/wp-admin/admin-functions.php,v
retrieving revision 1.47
retrieving revision 1.48
diff -C2 -d -r1.47 -r1.48
*** admin-functions.php 6 Oct 2004 05:11:08 -0000 1.47
--- admin-functions.php 6 Oct 2004 06:20:51 -0000 1.48
***************
*** 744,747 ****
--- 744,748 ----
update_option('template', 'default');
update_option('stylesheet', 'default');
+ do_action('switch_theme', 'Default');
return false;
}
***************
*** 750,753 ****
--- 751,755 ----
update_option('template', 'default');
update_option('stylesheet', 'default');
+ do_action('switch_theme', 'Default');
return false;
}
Index: themes.php
===================================================================
RCS file: /cvsroot/cafelog/wordpress/wp-admin/themes.php,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** themes.php 16 Sep 2004 18:09:32 -0000 1.4
--- themes.php 6 Oct 2004 06:20:52 -0000 1.5
***************
*** 16,19 ****
--- 16,21 ----
}
+ do_action('switch_theme', get_current_theme());
+
header('Location: themes.php?activated=true');
}
More information about the cvs
mailing list