- Timestamp:
- 01/08/2014 03:52:47 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-media-list-table.php
r25880 r26916 91 91 $this->months_dropdown( 'attachment' ); 92 92 93 /** This action is documented in wp-admin/includes/class-wp-posts-list-table.php */ 93 94 do_action( 'restrict_manage_posts' ); 94 95 submit_button( __( 'Filter' ), 'button', false, false, array( 'id' => 'post-query-submit' ) ); … … 138 139 $taxonomies = wp_filter_object_list( $taxonomies, array( 'show_admin_column' => true ), 'and', 'name' ); 139 140 141 /** 142 * Filter the taxonomy columns for attachments in the Media list table. 143 * 144 * @since 3.5.0 145 * 146 * @param array $taxonomies An array of registered taxonomies to show for attachments. 147 * @param string $post_type The post type. Default 'attachment'. 148 */ 140 149 $taxonomies = apply_filters( 'manage_taxonomies_for_attachment_columns', $taxonomies, 'attachment' ); 141 150 $taxonomies = array_filter( $taxonomies, 'taxonomy_exists' ); … … 160 169 /* translators: column name */ 161 170 $posts_columns['date'] = _x( 'Date', 'column name' ); 171 /** 172 * Filter the Media list table columns. 173 * 174 * @since 2.5.0 175 * 176 * @param array $posts_columns An array of columns displayed in the Media list table. 177 * @param bool $detached Whether the list table contains media not attached 178 * to any posts. Default true. 179 */ 162 180 $posts_columns = apply_filters( 'manage_media_columns', $posts_columns, $this->detached ); 163 181 … … 384 402 ?> 385 403 <td <?php echo $attributes ?>> 404 <?php 405 /** 406 * Fires for each custom column in the Media list table. 407 * 408 * Custom columns are registered using the 'manage_media_columns' filter. 409 * 410 * @since 2.5.0 411 * 412 * @param string $column_name Name of the custom column. 413 * @param int $post_id Attachment ID. 414 */ 415 ?> 386 416 <?php do_action( 'manage_media_custom_column', $column_name, $post->ID ); ?> 387 417 </td> … … 431 461 } 432 462 463 /** 464 * Filter the action links for each attachment in the Media list table. 465 * 466 * @since 2.8.0 467 * 468 * @param array $actions An array of action links for each attachment. 469 * Default 'Edit', 'Delete Permanently', 'View'. 470 * @param WP_Post $post WP_Post object for the current attachment. 471 * @param bool $detached Whether the list table contains media not attached 472 * to any posts. Default true. 473 */ 433 474 $actions = apply_filters( 'media_row_actions', $actions, $post, $this->detached ); 434 475
Note: See TracChangeset
for help on using the changeset viewer.