Make WordPress Core

Changeset 5203


Ignore:
Timestamp:
04/07/2007 03:43:20 PM (19 years ago)
Author:
rob1n
Message:

Add clean_category_cache() and capability checking. see #4107

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/import/wp-cat2tag.php

    r5201 r5203  
    11<?php
    2 
    3 error_reporting(E_ALL);
    42
    53class WP_Categories_to_Tags {
     
    115113               
    116114                print '</ul>';
     115               
     116                clean_category_cache();
    117117        }
    118118       
     
    126126                $this->header();
    127127               
    128                 switch ($step) {
    129                         case 1:
    130                                 $this->welcome();
     128                if (!current_user_can('manage_categories') || !current_user_can('manage_tags')) {
     129                        print '<div class="narrow">';
     130                        print '<p>' __('Cheatin&#8217; uh?') . '</p>';
     131                        print '</div>';
     132                } else {
     133                        switch ($step) {
     134                                case 1 :
     135                                        $this->welcome();
    131136                                break;
    132                         case 2:
    133                                 $this->convert_them();
     137                               
     138                                case 2 :
     139                                        $this->convert_them();
    134140                                break;
     141                        }
    135142                }
    136143               
Note: See TracChangeset for help on using the changeset viewer.