- Timestamp:
- 06/01/2024 10:25:18 PM (14 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-core/classes/class-bp-optouts-list-table.php
r13882 r13888 131 131 * @param string $url_base Current URL base for view. 132 132 */ 133 do_action( 'bp_optouts_list_table_get_views', $url_base ); ?> 133 do_action( 'bp_optouts_list_table_get_views', $url_base ); 134 ?> 134 135 </ul> 135 <?php136 <?php 136 137 } 137 138 … … 146 147 * @param array $which Current table nav item. 147 148 */ 148 public function extra_tablenav( $which ) { 149 return; 150 } 149 public function extra_tablenav( $which ) {} 151 150 152 151 /** … … 224 223 $style = ''; 225 224 foreach ( $this->items as $optout ) { 226 $style = 'alt' == $style ? '' : 'alt';225 $style = 'alt' === $style ? '' : 'alt'; 227 226 228 227 // Escapes are made into `self::single_row()`. … … 265 264 */ 266 265 public function column_cb( $optout = null ) { 267 ?>266 ?> 268 267 <label class="screen-reader-text" for="optout_<?php echo intval( $optout->id ); ?>"> 269 268 <?php … … 272 271 ?> 273 272 </label> 274 <input type="checkbox" id="optout_<?php echo intval( $optout->id ) ?>" name="optout_ids[]" value="<?php echo esc_attr( $optout->id )?>" />273 <input type="checkbox" id="optout_<?php echo intval( $optout->id ); ?>" name="optout_ids[]" value="<?php echo esc_attr( $optout->id ); ?>" /> 275 274 <?php 276 275 } … … 281 280 * @since 8.0.0 282 281 * 283 * @param BP_Optout $optout BP_Optout object.282 * @param BP_Optout|null $optout BP_Optout object. 284 283 */ 285 284 public function column_email_address( $optout = null ) { … … 295 294 296 295 // Delete link. 297 $delete_link = add_query_arg(296 $delete_link = add_query_arg( 298 297 array( 299 298 'page' => 'bp-optouts', … … 325 324 * @since 8.0.0 326 325 * 327 * @param BP_Optout $optout BP_Optout object.326 * @param BP_Optout|null $optout BP_Optout object. 328 327 */ 329 328 public function column_username( $optout = null ) { … … 347 346 'height' => true, 348 347 'width' => true, 349 ) 348 ), 350 349 ) 351 350 ); … … 358 357 * @since 8.0.0 359 358 * 360 * @param BP_Optout $optout BP_Optout object.359 * @param BP_Optout|null $optout BP_Optout object. 361 360 */ 362 361 public function column_user_registered( $optout = null ) { … … 367 366 } 368 367 369 echo esc_html( mysql2date( 'Y/m/d g:i:s a', $inviter->user_registered 368 echo esc_html( mysql2date( 'Y/m/d g:i:s a', $inviter->user_registered ) ); 370 369 } 371 370 … … 375 374 * @since 8.0.0 376 375 * 377 * @param BP_Optout $optout BP_Optout object.376 * @param BP_Optout|null $optout BP_Optout object. 378 377 */ 379 378 public function column_email_type( $optout = null ) { … … 386 385 * @since 8.0.0 387 386 * 388 * @param BP_Optout $optout BP_Optout object.387 * @param BP_Optout|null $optout BP_Optout object. 389 388 */ 390 389 public function column_email_type_description( $optout = null ) { … … 394 393 echo esc_html( $type_term->description ); 395 394 } 396 397 395 } 398 396 … … 402 400 * @since 8.0.0 403 401 * 404 * @param BP_Optout $optout BP_Optout object.402 * @param BP_Optout|null $optout BP_Optout object. 405 403 */ 406 404 public function column_optout_date_modified( $optout = null ) { … … 413 411 * @since 8.0.0 414 412 * 415 * @param BP_Optout $optout BP_Optout object.416 * @param string $column_name The column name.413 * @param BP_Optout|null $optout BP_Optout object. 414 * @param string $column_name The column name. 417 415 * @return string 418 416 */ 419 function column_default( $optout = null, $column_name = '' ) {417 public function column_default( $optout = null, $column_name = '' ) { 420 418 421 419 /** … … 424 422 * @since 8.0.0 425 423 * 426 * @param string $column_name The column name.427 * @param BP_Optout $optout BP_Optout object.424 * @param string $column_name The column name. 425 * @param BP_Optout|null $optout BP_Optout object or null. 428 426 */ 429 427 return apply_filters( 'bp_optouts_management_custom_column', '', $column_name, $optout );
Note: See TracChangeset
for help on using the changeset viewer.