You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: class-gktpp-table.php
+6-10Lines changed: 6 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -59,7 +59,7 @@ public function get_columns() {
59
59
'url' => __( 'URL', 'gktpp' ),
60
60
'hint_type' => __( 'Hint Type', 'gktpp' ),
61
61
'status' => __( 'Status', 'gktpp' ),
62
-
'author' => __( 'Author', 'gktpp' ),
62
+
'author' => __( 'Author', 'gktpp' )
63
63
);
64
64
65
65
return$columns;
@@ -114,16 +114,12 @@ public function column_default( $item, $column_name ) {
114
114
switch ( $column_name ) {
115
115
case'url':
116
116
return$item['url'];
117
-
118
117
case'hint_type':
119
118
return$item['hint_type'];
120
-
121
119
case'status':
122
-
return$item['status'];
123
-
120
+
return$item['status'];
124
121
case'author':
125
122
returnwp_get_current_user()->display_name;
126
-
127
123
default:
128
124
returnesc_html_e( 'Error', 'gktpp' );
129
125
}
@@ -138,7 +134,7 @@ public function get_sortable_columns() {
138
134
$sortable_columns = array(
139
135
'url' => array( 'url', true ),
140
136
'hint_type' => array( 'hint_type', false ),
141
-
'status' => array( 'status', false ),
137
+
'status' => array( 'status', false )
142
138
);
143
139
144
140
return$sortable_columns;
@@ -198,8 +194,8 @@ public function prepare_items() {
198
194
199
195
GKTPP_Enter_Data::contact_author();
200
196
201
-
$text = sprintf( __( 'Tip: test your website on <a href="%s">WebPageTest.org</a> to know which resource hints and URLs to insert.' ), __( 'https://www.webpagetest.org' ) );
202
-
echo$text;
197
+
$text = sprintf( __( 'Tip: test your website on <a href="%s">WebPageTest.org</a> to know which resource hints and URLs to insert.' ), __( 'https://www.webpagetest.org' ) );
198
+
echo$text;
203
199
}
204
200
205
201
}
@@ -208,7 +204,7 @@ public function get_bulk_actions() {
0 commit comments