- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/template.php
r15201 r14933 397 397 */ 398 398 function _tag_row( $tag, $level, $taxonomy = 'post_tag' ) { 399 global $post_type , $current_screen;399 global $post_type; 400 400 static $row_class = ''; 401 401 $row_class = ($row_class == '' ? ' class="alternate"' : ''); … … 423 423 424 424 425 $columns = get_column_headers( $current_screen);426 $hidden = get_hidden_columns( $current_screen);425 $columns = get_column_headers('edit-tags'); 426 $hidden = get_hidden_columns('edit-tags'); 427 427 $default_term = get_option('default_' . $taxonomy); 428 428 foreach ( $columns as $column_name => $column_display_name ) { … … 1433 1433 case 'author': 1434 1434 ?> 1435 <td <?php echo $attributes ?>><a href="edit.php? post_type=<?php echo $post->post_type; ?>&author=<?php the_author_meta('ID'); ?>"><?php the_author() ?></a></td>1435 <td <?php echo $attributes ?>><a href="edit.php?author=<?php the_author_meta('ID'); ?>"><?php the_author() ?></a></td> 1436 1436 <?php 1437 1437 break; … … 1530 1530 case 'cb': 1531 1531 ?> 1532 <th scope="row" class="check-column">< ?php if ( current_user_can( $post_type_object->cap->edit_post, $page->ID ) ) { ?><input type="checkbox" name="post[]" value="<?php the_ID(); ?>" /><?php } ?></th>1532 <th scope="row" class="check-column"><input type="checkbox" name="post[]" value="<?php the_ID(); ?>" /></th> 1533 1533 <?php 1534 1534 break; … … 1623 1623 case 'author': 1624 1624 ?> 1625 <td <?php echo $attributes ?>><a href="edit .php?post_type=<?php echo $post_type; ?>&author=<?php the_author_meta('ID'); ?>"><?php the_author() ?></a></td>1625 <td <?php echo $attributes ?>><a href="edit-pages.php?author=<?php the_author_meta('ID'); ?>"><?php the_author() ?></a></td> 1626 1626 <?php 1627 1627 break; … … 2402 2402 $r .= "\n\t\t<div class='submit'><input name='deletemeta[{$entry['meta_id']}]' type='submit' "; 2403 2403 $r .= "class='delete:the-list:meta-{$entry['meta_id']}::_ajax_nonce=$delete_nonce deletemeta' tabindex='6' value='". esc_attr__( 'Delete' ) ."' />"; 2404 $r .= "\n\t\t<input name='updatemeta' type='submit' tabindex='6' value='". esc_attr__( 'Update' ) ."' class='add:the-list:meta-{$entry['meta_id']}::_ajax_nonce -add-meta=$update_nonce updatemeta' /></div>";2404 $r .= "\n\t\t<input name='updatemeta' type='submit' tabindex='6' value='". esc_attr__( 'Update' ) ."' class='add:the-list:meta-{$entry['meta_id']}::_ajax_nonce=$update_nonce updatemeta' /></div>"; 2405 2405 $r .= wp_nonce_field( 'change-meta', '_ajax_nonce', false, false ); 2406 2406 $r .= "</td>"; … … 2966 2966 * Add settings fields to your section with add_settings_field() 2967 2967 * 2968 * The $callback argument should be the name of a function that echo es out any2968 * The $callback argument should be the name of a function that echos out any 2969 2969 * content you want to show at the top of the settings section before the actual 2970 2970 * fields. It can output nothing if you want. … … 2973 2973 * 2974 2974 * @global $wp_settings_sections Storage array of all settings sections added to admin pages 2975 * 2975 2976 2976 * @param string $id Slug-name to identify the section. Used in the 'id' attribute of tags. 2977 2977 * @param string $title Formatted title of the section. Shown as the heading for the section. 2978 * @param string $callback Function that echo s out any content at the top of the section (between heading and fields).2979 * @param string $page The slug-name of the settings page on which to show the section . Built-in pages include 'general', 'reading', 'writing', 'discussion', 'media', etc. Create your own using add_options_page();2978 * @param string $callback Function that echo's out content for the section heading. 2979 * @param string $page The slug-name of the settings page on which to show the section (general, reading, writing, ...). 2980 2980 */ 2981 2981 function add_settings_section($id, $title, $callback, $page) { … … 3749 3749 break; 3750 3750 case 'ms-sites': 3751 $per_page_label = _ x( 'Sites', 'sites per page (screen options)');3751 $per_page_label = __('Sites'); 3752 3752 break; 3753 3753 case 'ms-users': 3754 $per_page_label = _ x( 'Users', 'users per page (screen options)');3754 $per_page_label = __('Users'); 3755 3755 break; 3756 3756 case 'edit-comments': 3757 $per_page_label = _ x( 'Comments', 'comments per page (screen options)');3757 $per_page_label = __('Comments'); 3758 3758 break; 3759 3759 case 'upload': 3760 $per_page_label = _ x( 'Media items', 'items per page (screen options)');3760 $per_page_label = __('Media items'); 3761 3761 break; 3762 3762 case 'edit-tags': … … 3765 3765 break; 3766 3766 case 'plugins': 3767 $per_page_label = _ x( 'Plugins', 'plugins per page (screen options)');3767 $per_page_label = __('Plugins'); 3768 3768 break; 3769 3769 default: … … 3901 3901 */ 3902 3902 function set_current_screen( $id = '' ) { 3903 global $current_screen, $hook_suffix, $typenow , $taxnow;3903 global $current_screen, $hook_suffix, $typenow; 3904 3904 3905 3905 if ( empty($id) ) { … … 3910 3910 $current_screen = array('id' => $current_screen, 'base' => $current_screen); 3911 3911 } else { 3912 $id = sanitize_key($id); 3913 if ( false !== strpos($id, '-') ) { 3912 if ( false !== strpos($id, '-') ) 3914 3913 list( $id, $typenow ) = explode('-', $id, 2); 3915 if ( is_taxonomy($typenow) ) {3916 $id = 'edit-tags';3917 $taxnow = $typenow;3918 $typenow = '';3919 }3920 }3921 3914 $current_screen = array('id' => $id, 'base' => $id); 3922 3915 } … … 3940 3933 $current_screen->id = $typenow; 3941 3934 $current_screen->post_type = $typenow; 3942 } elseif ( 'edit-tags' == $current_screen->id ) {3943 if ( empty($taxnow) )3944 $taxnow = 'post_tag';3945 $current_screen->id = 'edit-' . $taxnow;3946 $current_screen->taxonomy = $taxnow;3947 3935 } 3948 3936
Note: See TracChangeset
for help on using the changeset viewer.