- 371F8D02E7129DB277BEB5E47BC9BC2EBCFD2027D8361E13B2EC6E4C50EC3D307144E3A8A8B1D4731A5AEE6C179201A0A59F21FCCF358BE59D9F0BE4A77F6C5E
+ 4DBB910F9F1A943C1F5FCE4949B27254FCE7962131884B836AC44E70EB588C39C4C160A93C6CA39B541A5FA8EB8156D785821286DC893D494083F4FB0C6789ED
mp-wp/wp-admin/categories.php
(13 . 7)(13 . 7)
1165
1166 wp_reset_vars( array('action', 'cat') );
1167
1168 if ( isset( $_GET['action'] ) && isset($_GET['delete']) && ( 'delete' == $_GET['action'] || 'delete' == $_GET['action2'] ) )
1169 if ( isset( $_GET['action'] ) && isset($_GET['delete']) && 'delete' == $_GET['action'] )
1170 $action = 'bulk-delete';
1171
1172 switch($action) {
(116 . 10)(116 . 6)
1174 exit;
1175 }
1176
1177 wp_enqueue_script('admin-categories');
1178 if ( current_user_can('manage_categories') )
1179 wp_enqueue_script('inline-edit-tax');
1180
1181 require_once ('admin-header.php');
1182
1183 $messages[1] = __('Category added.');
(198 . 13)(194 . 6)
1185 <?php print_column_headers('categories'); ?>
1186 </tr>
1187 </thead>
1188
1189 <tfoot>
1190 <tr>
1191 <?php print_column_headers('categories', false); ?>
1192 </tr>
1193 </tfoot>
1194
1195 <tbody id="the-list" class="list:cat">
1196 <?php
1197 cat_rows(0, 0, 0, $pagenum, $catsperpage);
(212 . 29)(201 . 10)
1199 </tbody>
1200 </table>
1201
1202 <div class="tablenav">
1203 <?php
1204 if ( $page_links )
1205 echo "<div class='tablenav-pages'>$page_links</div>";
1206 ?>
1207
1208 <div class="alignleft actions">
1209 <select name="action2">
1210 <option value="" selected="selected"><?php _e('Bulk Actions'); ?></option>
1211 <option value="delete"><?php _e('Delete'); ?></option>
1212 </select>
1213 <input type="submit" value="<?php _e('Apply'); ?>" name="doaction2" id="doaction2" class="button-secondary action" />
1214 <?php wp_nonce_field('bulk-categories'); ?>
1215 </div>
1216
1217 <br class="clear" />
1218 </div>
1219
1220 </form>
1221
1222 <div class="form-wrap">
1223 <p><?php printf(__('<strong>Note:</strong><br />Deleting a category does not delete the posts in that category. Instead, posts that were only assigned to the deleted category are set to the category <strong>%s</strong>.'), apply_filters('the_category', get_catname(get_option('default_category')))) ?></p>
1224 <p><?php printf(__('Categories can be selectively converted to tags using the <a href="%s">category to tag converter</a>.'), 'admin.php?import=wp-cat2tag') ?></p>
1225 </div>
1226
1227 </div>
(248 . 7)(218 . 6)
1229
1230 <div class="form-wrap">
1231 <h3><?php _e('Add Category'); ?></h3>
1232 <div id="ajax-response"></div>
1233 <form name="addcat" id="addcat" method="post" action="categories.php" class="add:the-list: validate">
1234 <input type="hidden" name="action" value="addcat" />
1235 <?php wp_original_referer_field(true, 'previous'); wp_nonce_field('add-category'); ?>
(289 . 24)(258 . 7)
1237 </div><!-- /col-container -->
1238 </div><!-- /wrap -->
1239
1240 <script type="text/javascript">
1241 /* <![CDATA[ */
1242 (function($){
1243 $(document).ready(function(){
1244 $('#doaction, #doaction2').click(function(){
1245 if ( $('select[name^="action"]').val() == 'delete' ) {
1246 var m = '<?php echo js_escape(__("You are about to delete the selected categories.\n 'Cancel' to stop, 'OK' to delete.")); ?>';
1247 return showNotice.warn(m);
1248 }
1249 });
1250 });
1251 })(jQuery);
1252 /* ]]> */
1253 </script>
1254
1255 <?php
1256 inline_edit_term_row('categories');
1257
1258 break;
1259 }
1260