~canonical-sysadmins/wordpress/4.2.4

« back to all changes in this revision

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

  • Committer: Paul Gear
  • Date: 2015-04-24 01:35:20 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: paul.gear@canonical.com-20150424013520-w4p9ksth76zh6opw
Merge new upstream release 4.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
111
111
        public function display_rows() {
112
112
                global $cat_id;
113
113
 
114
 
                $alt = 0;
115
 
 
116
114
                foreach ( $this->items as $link ) {
117
115
                        $link = sanitize_bookmark( $link );
118
116
                        $link->link_name = esc_attr( $link->link_name );
122
120
 
123
121
                        $visible = ( $link->link_visible == 'Y' ) ? __( 'Yes' ) : __( 'No' );
124
122
                        $rating  = $link->link_rating;
125
 
                        $style = ( $alt++ % 2 ) ? '' : ' class="alternate"';
126
123
 
127
124
                        $edit_link = get_edit_bookmark_link( $link );
128
125
?>
129
 
                <tr id="link-<?php echo $link->link_id; ?>" <?php echo $style; ?>>
 
126
                <tr id="link-<?php echo $link->link_id; ?>">
130
127
<?php
131
128
 
132
129
                        list( $columns, $hidden ) = $this->get_column_info();