Changeset 43571 for trunk/src/wp-admin/includes/dashboard.php
- Timestamp:
- 08/17/2018 01:50:26 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/dashboard.php
r43545 r43571 227 227 } 228 228 229 ?>229 ?> 230 230 <div id="dashboard-widgets" class="metabox-holder<?php echo $columns_css; ?>"> 231 231 <div id="postbox-container-1" class="postbox-container"> … … 243 243 </div> 244 244 245 <?php245 <?php 246 246 wp_nonce_field( 'closedpostboxes', 'closedpostboxesnonce', false ); 247 247 wp_nonce_field( 'meta-box-order', 'meta-box-order-nonce', false ); … … 261 261 */ 262 262 function wp_dashboard_right_now() { 263 ?>263 ?> 264 264 <div class="main"> 265 265 <ul> … … 389 389 390 390 if ( ! empty( $actions ) ) : 391 ?>391 ?> 392 392 <div class="sub"> 393 393 <?php echo $actions; ?> 394 394 </div> 395 <?php395 <?php 396 396 endif; 397 397 } … … 428 428 echo '</ul>'; 429 429 } 430 ?>430 ?> 431 431 <br class="clear" /> 432 432 … … 459 459 </p> 460 460 </form> 461 <?php461 <?php 462 462 /** 463 463 * Fires at the end of the 'Right Now' widget in the Network Admin dashboard. … … 511 511 512 512 $post_ID = (int) $post->ID; 513 ?>513 ?> 514 514 515 515 <form name="post" action="<?php echo esc_url( admin_url( 'post.php' ) ); ?>" method="post" id="quick-press" class="initial-form hide-if-no-js"> … … 693 693 } 694 694 } 695 ?>695 ?> 696 696 697 697 <li id="comment-<?php echo $comment->comment_ID; ?>" <?php comment_class( array( 'comment-item', wp_get_comment_status( $comment ) ), $comment ); ?>> … … 703 703 <div class="dashboard-comment-wrap has-row-actions"> 704 704 <p class="comment-meta"> 705 <?php705 <?php 706 706 // Comments might not have a post they relate to, e.g. programmatically created ones. 707 if ( $comment_post_link ) {708 printf(709 /* translators: 1: comment author, 2: post link, 3: notification if the comment is pending */710 __( 'From %1$s on %2$s %3$s' ),711 '<cite class="comment-author">' . get_comment_author_link( $comment ) . '</cite>',712 $comment_post_link,713 '<span class="approve">' . __( '[Pending]' ) . '</span>'714 );715 } else {716 printf(717 /* translators: 1: comment author, 2: notification if the comment is pending */718 __( 'From %1$s %2$s' ),719 '<cite class="comment-author">' . get_comment_author_link( $comment ) . '</cite>',720 '<span class="approve">' . __( '[Pending]' ) . '</span>'721 );722 }723 ?>707 if ( $comment_post_link ) { 708 printf( 709 /* translators: 1: comment author, 2: post link, 3: notification if the comment is pending */ 710 __( 'From %1$s on %2$s %3$s' ), 711 '<cite class="comment-author">' . get_comment_author_link( $comment ) . '</cite>', 712 $comment_post_link, 713 '<span class="approve">' . __( '[Pending]' ) . '</span>' 714 ); 715 } else { 716 printf( 717 /* translators: 1: comment author, 2: notification if the comment is pending */ 718 __( 'From %1$s %2$s' ), 719 '<cite class="comment-author">' . get_comment_author_link( $comment ) . '</cite>', 720 '<span class="approve">' . __( '[Pending]' ) . '</span>' 721 ); 722 } 723 ?> 724 724 </p> 725 725 726 <?php726 <?php 727 727 else : 728 728 switch ( $comment->comment_type ) { … … 737 737 } 738 738 $type = esc_html( $type ); 739 ?>739 ?> 740 740 <div class="dashboard-comment-wrap has-row-actions"> 741 741 <p class="comment-meta"> 742 <?php742 <?php 743 743 // Pingbacks, Trackbacks or custom comment types might not have a post they relate to, e.g. programmatically created ones. 744 if ( $comment_post_link ) {745 printf(746 /* translators: 1: type of comment, 2: post link, 3: notification if the comment is pending */747 _x( '%1$s on %2$s %3$s', 'dashboard' ),748 "<strong>$type</strong>",749 $comment_post_link,750 '<span class="approve">' . __( '[Pending]' ) . '</span>'751 );752 } else {753 printf(754 /* translators: 1: type of comment, 2: notification if the comment is pending */755 _x( '%1$s %2$s', 'dashboard' ),756 "<strong>$type</strong>",757 '<span class="approve">' . __( '[Pending]' ) . '</span>'758 );759 }760 ?>744 if ( $comment_post_link ) { 745 printf( 746 /* translators: 1: type of comment, 2: post link, 3: notification if the comment is pending */ 747 _x( '%1$s on %2$s %3$s', 'dashboard' ), 748 "<strong>$type</strong>", 749 $comment_post_link, 750 '<span class="approve">' . __( '[Pending]' ) . '</span>' 751 ); 752 } else { 753 printf( 754 /* translators: 1: type of comment, 2: notification if the comment is pending */ 755 _x( '%1$s %2$s', 'dashboard' ), 756 "<strong>$type</strong>", 757 '<span class="approve">' . __( '[Pending]' ) . '</span>' 758 ); 759 } 760 ?> 761 761 </p> 762 762 <p class="comment-author"><?php comment_author_link( $comment ); ?></p> … … 769 769 </div> 770 770 </li> 771 <?php771 <?php 772 772 $GLOBALS['comment'] = null; 773 773 } … … 1050 1050 if ( is_scalar( $widget_control_id ) && $widget_control_id && isset( $wp_dashboard_control_callbacks[ $widget_control_id ] ) && is_callable( $wp_dashboard_control_callbacks[ $widget_control_id ] ) ) { 1051 1051 call_user_func( 1052 $wp_dashboard_control_callbacks[ $widget_control_id ], '', array( 1052 $wp_dashboard_control_callbacks[ $widget_control_id ], 1053 '', 1054 array( 1053 1055 'id' => $widget_control_id, 1054 1056 'callback' => $wp_dashboard_control_callbacks[ $widget_control_id ], … … 1761 1763 printf( 1762 1764 __( 'Manage <a href="%1$s">widgets</a> or <a href="%2$s">menus</a>' ), 1763 admin_url( 'widgets.php' ), admin_url( 'nav-menus.php' ) 1765 admin_url( 'widgets.php' ), 1766 admin_url( 'nav-menus.php' ) 1764 1767 ); 1765 1768 } elseif ( current_theme_supports( 'widgets' ) ) {
Note: See TracChangeset
for help on using the changeset viewer.