Changeset 1755

Show
Ignore:
Timestamp:
10/06/04 06:20:52 (4 years ago)
Author:
rboren
Message:

Add switch_theme action. Cleanup staticize-reloaded's cache when theme is switched.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/wp-admin/admin-functions.php

    r1753 r1755  
    744744        update_option('template', 'default'); 
    745745        update_option('stylesheet', 'default'); 
     746        do_action('switch_theme', 'Default'); 
    746747        return false; 
    747748    } 
     
    750751        update_option('template', 'default'); 
    751752        update_option('stylesheet', 'default'); 
     753        do_action('switch_theme', 'Default'); 
    752754        return false; 
    753755    } 
  • trunk/wp-admin/themes.php

    r1675 r1755  
    1515        update_option('stylesheet', $_GET['stylesheet']); 
    1616      } 
     17 
     18        do_action('switch_theme', get_current_theme()); 
    1719 
    1820      header('Location: themes.php?activated=true'); 
  • trunk/wp-content/plugins/staticize-reloaded.php

    r1740 r1755  
    154154    add_action('delete_comment', 'postChange', 0); 
    155155    add_action('template_save', 'postChange', 0); 
     156    add_action('switch_theme', 'postChange', 0); 
    156157} 
    157158