Changeset 14571 for trunk/wp-admin/includes/template.php
- Timestamp:
- 05/11/2010 07:52:50 PM (16 years ago)
- File:
-
- 1 edited
-
trunk/wp-admin/includes/template.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/template.php
r14524 r14571 14 14 * @since 2.7 15 15 * 16 * Outputs the HTML for the hidden table rows used in Categories, Link Ca tegories and Tags quick edit.17 * 18 * @param string $type "edit-tags", "categorie s" or "edit-link-categories"16 * Outputs the HTML for the hidden table rows used in Categories, Link Caregories and Tags quick edit. 17 * 18 * @param string $type "edit-tags", "categoried" or "edit-link-categories" 19 19 * @param string $taxonomy The taxonomy of the row. 20 20 * @return … … 1567 1567 $edit_link = get_edit_post_link( $page->ID ); 1568 1568 ?> 1569 <td <?php echo $attributes ?>><strong><?php if ( current_user_can($post_type_object->edit_cap, $page->ID) && $post->post_status != 'trash' ) { ?><a class="row-title" href="<?php echo $edit_link; ?>" title="<?php echo esc_attr(sprintf(__('Edit “%s”'), $title)); ?>"><?php echo $pad; echo $title ?></a><?php } else { echo $pad; echo $title; }; _post_states($page); echo isset($parent_name) ? ' | ' . __('Parent Page: '). esc_html($parent_name) : ''; ?></strong>1569 <td <?php echo $attributes ?>><strong><?php if ( current_user_can($post_type_object->edit_cap, $page->ID) && $post->post_status != 'trash' ) { ?><a class="row-title" href="<?php echo $edit_link; ?>" title="<?php echo esc_attr(sprintf(__('Edit “%s”'), $title)); ?>"><?php echo $pad; echo $title ?></a><?php } else { echo $pad; echo $title; }; _post_states($page); echo isset($parent_name) ? ' | ' . $post_type_object->labels->parent . ' ' . esc_html($parent_name) : ''; ?></strong> 1570 1570 <?php 1571 1571 $actions = array(); … … 3329 3329 switch ( $screen->id ) { 3330 3330 case $post_type_object->name: 3331 $default_action = array('edit.php?post_type=' . $post_type_object->name => array( sprintf(__('Edit %s'), $post_type_object->label), $post_type_object->edit_type_cap));3331 $default_action = array('edit.php?post_type=' . $post_type_object->name => array($post_type_object->labels->edit_item, $post_type_object->edit_type_cap)); 3332 3332 break; 3333 3333 case "edit-{$post_type_object->name}": 3334 $default_action = array('post-new.php?post_type=' . $post_type_object->name => array( sprintf(__('New %s'), $post_type_object->singular_label), $post_type_object->edit_type_cap));3334 $default_action = array('post-new.php?post_type=' . $post_type_object->name => array($post_type_object->labels->new_item, $post_type_object->edit_type_cap)); 3335 3335 break; 3336 3336 } … … 3747 3747 $post_type = $_GET['post_type']; 3748 3748 $post_type_object = get_post_type_object($post_type); 3749 $per_page_label = $post_type_object->label ;3749 $per_page_label = $post_type_object->labels->name; 3750 3750 break; 3751 3751 case 'ms-sites':
Note: See TracChangeset
for help on using the changeset viewer.