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 {
-
-
@@ -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'] = "';
+ $actions['unapprove'] = "" . __( 'Unapprove' ) . '';
else if ( 'unapproved' == $the_comment_status )
- $actions['approve'] = "';
+ $actions['approve'] = "" . __( 'Approve' ) . '';
} else {
- $actions['approve'] = "';
- $actions['unapprove'] = "';
+ $actions['approve'] = "" . __( 'Approve' ) . '';
+ $actions['unapprove'] = "" . __( 'Unapprove' ) . '';
}
if ( 'spam' != $the_comment_status && 'trash' != $the_comment_status ) {
- $actions['spam'] = "';
+ $actions['spam'] = "" . /* translators: mark as spam link */ _x( 'Spam', 'verb' ) . '';
} elseif ( 'spam' == $the_comment_status ) {
- $actions['unspam'] = "';
+ $actions['unspam'] = "" . _x( 'Not Spam', 'comment' ) . '';
} elseif ( 'trash' == $the_comment_status ) {
- $actions['untrash'] = "';
+ $actions['untrash'] = "" . __( 'Restore' ) . '';
}
if ( 'spam' == $the_comment_status || 'trash' == $the_comment_status || !EMPTY_TRASH_DAYS ) {
- $actions['delete'] = "';
+ $actions['delete'] = "" . __( 'Delete Permanently' ) . '';
} else {
- $actions['trash'] = "';
+ $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' );
?>
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 '
@@ -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) {
-
+
ID, array( 'taxonomy' => $taxonomy, 'popular_cats' => $popular_ids ) ) ?>