From cbd737470c06f2b8a113c4b328eb541943932a6c Mon Sep 17 00:00:00 2001 From: Andrew Ozz Date: Tue, 6 Nov 2012 01:01:52 +0000 Subject: [PATCH] Kill use of colons in class names, props SergeyBiryukov, fixes #21152 git-svn-id: http://core.svn.wordpress.org/trunk@22396 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- .../includes/class-wp-comments-list-table.php | 24 ++++---- wp-admin/includes/class-wp-list-table.php | 2 +- wp-admin/includes/dashboard.php | 12 ++-- wp-admin/includes/meta-boxes.php | 8 +-- wp-admin/includes/nav-menu.php | 8 +-- wp-admin/includes/template.php | 10 ++-- wp-admin/js/cat.js | 2 +- wp-admin/js/edit-comments.js | 15 ++--- wp-admin/js/inline-edit-tax.js | 2 +- wp-admin/press-this.php | 4 +- wp-admin/user-new.php | 4 +- wp-includes/js/wp-lists.js | 60 +++++++++---------- 12 files changed, 76 insertions(+), 75 deletions(-) diff --git a/wp-admin/includes/class-wp-comments-list-table.php b/wp-admin/includes/class-wp-comments-list-table.php index 3936aa2c40..cf0ab88a82 100644 --- a/wp-admin/includes/class-wp-comments-list-table.php +++ b/wp-admin/includes/class-wp-comments-list-table.php @@ -291,11 +291,11 @@ class WP_Comments_List_Table extends WP_List_Table { - + display_rows_or_placeholder(); ?> - + items = $this->extra_items; $this->display_rows(); ?> @@ -396,26 +396,26 @@ class WP_Comments_List_Table extends WP_List_Table { if ( $comment_status && 'all' != $comment_status ) { // not looking at all comments if ( 'approved' == $the_comment_status ) - $actions['unapprove'] = "" . __( 'Unapprove' ) . ''; + $actions['unapprove'] = "" . __( 'Unapprove' ) . ''; else if ( 'unapproved' == $the_comment_status ) - $actions['approve'] = "" . __( 'Approve' ) . ''; + $actions['approve'] = "" . __( 'Approve' ) . ''; } else { - $actions['approve'] = "" . __( 'Approve' ) . ''; - $actions['unapprove'] = "" . __( 'Unapprove' ) . ''; + $actions['approve'] = "" . __( 'Approve' ) . ''; + $actions['unapprove'] = "" . __( 'Unapprove' ) . ''; } if ( 'spam' != $the_comment_status && 'trash' != $the_comment_status ) { - $actions['spam'] = "" . /* translators: mark as spam link */ _x( 'Spam', 'verb' ) . ''; + $actions['spam'] = "" . /* translators: mark as spam link */ _x( 'Spam', 'verb' ) . ''; } elseif ( 'spam' == $the_comment_status ) { - $actions['unspam'] = "" . _x( 'Not Spam', 'comment' ) . ''; + $actions['unspam'] = "" . _x( 'Not Spam', 'comment' ) . ''; } elseif ( 'trash' == $the_comment_status ) { - $actions['untrash'] = "" . __( 'Restore' ) . ''; + $actions['untrash'] = "" . __( 'Restore' ) . ''; } if ( 'spam' == $the_comment_status || 'trash' == $the_comment_status || !EMPTY_TRASH_DAYS ) { - $actions['delete'] = "" . __( 'Delete Permanently' ) . ''; + $actions['delete'] = "" . __( 'Delete Permanently' ) . ''; } else { - $actions['trash'] = "" . _x( 'Trash', 'verb' ) . ''; + $actions['trash'] = "" . _x( 'Trash', 'verb' ) . ''; } if ( 'spam' != $the_comment_status && 'trash' != $the_comment_status ) { @@ -552,7 +552,7 @@ class WP_Post_Comments_List_Table extends WP_Comments_List_Table { wp_nonce_field( "fetch-list-" . get_class( $this ), '_ajax_fetch_list_nonce' ); ?> - > + > display_rows_or_placeholder(); ?> diff --git a/wp-admin/includes/class-wp-list-table.php b/wp-admin/includes/class-wp-list-table.php index 1581309d62..8a22bd4e0d 100644 --- a/wp-admin/includes/class-wp-list-table.php +++ b/wp-admin/includes/class-wp-list-table.php @@ -732,7 +732,7 @@ class WP_List_Table { - > + > display_rows_or_placeholder(); ?> diff --git a/wp-admin/includes/dashboard.php b/wp-admin/includes/dashboard.php index b2c2dff44e..ffcdf4d26b 100644 --- a/wp-admin/includes/dashboard.php +++ b/wp-admin/includes/dashboard.php @@ -617,7 +617,7 @@ function wp_dashboard_recent_comments() { } if ( $comments ) { - echo '
'; + echo '
'; foreach ( $comments as $comment ) _wp_dashboard_recent_comments_row( $comment ); echo '
'; @@ -660,15 +660,15 @@ function _wp_dashboard_recent_comments_row( &$comment, $show_date = true ) { $trash_url = esc_url( "comment.php?action=trashcomment&p=$comment->comment_post_ID&c=$comment->comment_ID&$del_nonce" ); $delete_url = esc_url( "comment.php?action=deletecomment&p=$comment->comment_post_ID&c=$comment->comment_ID&$del_nonce" ); - $actions['approve'] = "" . __( 'Approve' ) . ''; - $actions['unapprove'] = "" . __( 'Unapprove' ) . ''; + $actions['approve'] = "" . __( 'Approve' ) . ''; + $actions['unapprove'] = "" . __( 'Unapprove' ) . ''; $actions['edit'] = "". __('Edit') . ''; $actions['reply'] = '' . __('Reply') . ''; - $actions['spam'] = "" . /* translators: mark as spam link */ _x( 'Spam', 'verb' ) . ''; + $actions['spam'] = "" . /* translators: mark as spam link */ _x( 'Spam', 'verb' ) . ''; if ( !EMPTY_TRASH_DAYS ) - $actions['delete'] = "" . __('Delete Permanently') . ''; + $actions['delete'] = "" . __('Delete Permanently') . ''; else - $actions['trash'] = "" . _x('Trash', 'verb') . ''; + $actions['trash'] = "" . _x('Trash', 'verb') . ''; $actions = apply_filters( 'comment_row_actions', array_filter($actions), $comment ); diff --git a/wp-admin/includes/meta-boxes.php b/wp-admin/includes/meta-boxes.php index 9273bf96f8..13717c669a 100644 --- a/wp-admin/includes/meta-boxes.php +++ b/wp-admin/includes/meta-boxes.php @@ -423,7 +423,7 @@ function post_categories_meta_box( $post, $box ) { $name = ( $taxonomy == 'category' ) ? 'post_category' : 'tax_input[' . $taxonomy . ']'; echo ""; // Allows for an empty term set to be sent. 0 is an invalid Term ID and will be ignored by empty() checks. ?> -
@@ -444,7 +444,7 @@ function post_categories_meta_box( $post, $box ) { labels->parent_item_colon; ?> $taxonomy, 'hide_empty' => 0, 'name' => 'new'.$taxonomy.'_parent', 'orderby' => 'name', 'hierarchical' => 1, 'show_option_none' => '— ' . $tax->labels->parent_item . ' —' ) ); ?> - +

@@ -755,7 +755,7 @@ function link_categories_meta_box($link) {
-
-