Ticket #9550: dont_use_get_catname.9550.diff
File dont_use_get_catname.9550.diff, 2.8 KB (added by , 15 years ago) |
---|
-
wp-includes/functions.php
2244 2244 $trans['update']['attachment'] = array( __( 'Your attempt to edit this attachment: "%s" has failed.' ), 'get_the_title' ); 2245 2245 2246 2246 $trans['add']['category'] = array( __( 'Your attempt to add this category has failed.' ), false ); 2247 $trans['delete']['category'] = array( __( 'Your attempt to delete this category: "%s" has failed.' ), 'get_cat name' );2248 $trans['update']['category'] = array( __( 'Your attempt to edit this category: "%s" has failed.' ), 'get_cat name' );2247 $trans['delete']['category'] = array( __( 'Your attempt to delete this category: "%s" has failed.' ), 'get_cat_name' ); 2248 $trans['update']['category'] = array( __( 'Your attempt to edit this category: "%s" has failed.' ), 'get_cat_name' ); 2249 2249 2250 2250 $trans['delete']['comment'] = array( __( 'Your attempt to delete this comment: "%s" has failed.' ), 'use_id' ); 2251 2251 $trans['unapprove']['comment'] = array( __( 'Your attempt to unapprove this comment: "%s" has failed.' ), 'use_id' ); -
wp-admin/categories.php
40 40 if ( !current_user_can('manage_categories') ) 41 41 wp_die(__('Cheatin’ uh?')); 42 42 43 $cat_name = get_cat name($cat_ID);43 $cat_name = get_cat_name($cat_ID); 44 44 45 45 // Don't delete the default cats. 46 46 if ( $cat_ID == get_option('default_category') ) … … 60 60 wp_die( __('You are not allowed to delete categories.') ); 61 61 62 62 foreach ( (array) $_GET['delete'] as $cat_ID ) { 63 $cat_name = get_cat name($cat_ID);63 $cat_name = get_cat_name($cat_ID); 64 64 65 65 // Don't delete the default cats. 66 66 if ( $cat_ID == get_option('default_category') ) … … 234 234 </form> 235 235 236 236 <div class="form-wrap"> 237 <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_cat name(get_option('default_category')))) ?></p>237 <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_cat_name(get_option('default_category')))) ?></p> 238 238 <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> 239 239 </div> 240 240