- Timestamp:
- 01/14/2015 10:13:03 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-users-list-table.php
r30537 r31181 307 307 $editable_roles = array_keys( get_editable_roles() ); 308 308 309 $style = '';310 309 foreach ( $this->items as $userid => $user_object ) { 311 310 if ( count( $user_object->roles ) <= 1 ) { … … 320 319 continue; 321 320 322 $style = ( ' class="alternate"' == $style ) ? '' : ' class="alternate"'; 323 echo "\n\t" . $this->single_row( $user_object, $style, $role, isset( $post_counts ) ? $post_counts[ $userid ] : 0 ); 321 echo "\n\t" . $this->single_row( $user_object, $style = '', $role, isset( $post_counts ) ? $post_counts[ $userid ] : 0 ); 324 322 } 325 323 } … … 329 327 * 330 328 * @since 3.1.0 329 * @since 4.2.0 `$style` argument was deprecated. 331 330 * @access public 332 331 * 333 332 * @param object $user_object The current user object. 334 * @param string $style Optional. Style attributes added to the `<tr>` element. 335 * Must be sanitized. Default empty. 333 * @param string $style Deprecated. Not used. 336 334 * @param string $role Optional. Key for the $wp_roles array. Default empty. 337 335 * @param int $numposts Optional. Post count to display for this user. Defaults … … 396 394 $avatar = get_avatar( $user_object->ID, 32 ); 397 395 398 $r = "<tr id='user-$user_object->ID' $style>";396 $r = "<tr id='user-$user_object->ID'>"; 399 397 400 398 list( $columns, $hidden ) = $this->get_column_info();
Note: See TracChangeset
for help on using the changeset viewer.