~canonical-sysadmins/wordpress/4.8.1

« back to all changes in this revision

Viewing changes to wp-admin/includes/class-wp-comments-list-table.php

  • Committer: Barry Price
  • Date: 2016-08-17 04:49:28 UTC
  • mto: This revision was merged to the branch mainline in revision 22.
  • Revision ID: barry.price@canonical.com-20160817044928-viijiwb4tl8jwzmp
new upstream release 4.6

Show diffs side-by-side

added added

removed removed

Lines of Context:
166
166
        public function get_per_page( $comment_status = 'all' ) {
167
167
                $comments_per_page = $this->get_items_per_page( 'edit_comments_per_page' );
168
168
                /**
169
 
                 * Filter the number of comments listed per page in the comments list table.
 
169
                 * Filters the number of comments listed per page in the comments list table.
170
170
                 *
171
171
                 * @since 2.6.0
172
172
                 *
201
201
 
202
202
                $status_links = array();
203
203
                $num_comments = ( $post_id ) ? wp_count_comments( $post_id ) : wp_count_comments();
204
 
                //, number_format_i18n($num_comments->moderated) ), "<span class='comment-count'>" . number_format_i18n($num_comments->moderated) . "</span>"),
205
 
                //, number_format_i18n($num_comments->spam) ), "<span class='spam-comment-count'>" . number_format_i18n($num_comments->spam) . "</span>")
 
204
 
206
205
                $stati = array(
207
206
                        /* translators: %s: all comments count */
208
207
                        'all' => _nx_noop(
270
269
                }
271
270
 
272
271
                /**
273
 
                 * Filter the comment status links.
 
272
                 * Filters the comment status links.
274
273
                 *
275
274
                 * @since 2.5.0
276
275
                 *
330
329
                                <option value=""><?php _e( 'All comment types' ); ?></option>
331
330
<?php
332
331
                                /**
333
 
                                 * Filter the comment types dropdown menu.
 
332
                                 * Filters the comment types dropdown menu.
334
333
                                 *
335
334
                                 * @since 2.7.0
336
335
                                 *
718
717
        public function column_date( $comment ) {
719
718
                /* translators: 1: comment date, 2: comment time */
720
719
                $submitted = sprintf( __( '%1$s at %2$s' ),
721
 
                        /* translators: comment date format. See http://php.net/date */
 
720
                        /* translators: comment date format. See https://secure.php.net/date */
722
721
                        get_comment_date( __( 'Y/m/d' ), $comment ),
723
722
                        get_comment_date( __( 'g:i a' ), $comment )
724
723
                );