Add missing summaries and `@access` tags to methods added to `WP_Media_List_Table` in 4.3.

See [32754]. See #32891.

Built from https://develop.svn.wordpress.org/trunk@33179


git-svn-id: http://core.svn.wordpress.org/trunk@33151 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Drew Jaynes 2015-07-12 18:34:24 +00:00
parent d7c887fe5d
commit 967b04a7f8
2 changed files with 44 additions and 20 deletions

View File

@ -311,9 +311,12 @@ class WP_Media_List_Table extends WP_List_Table {
} }
/** /**
* @since 4.3.0 * Handles the checkbox column output.
* *
* @param WP_Post $post * @since 4.3.0
* @access public
*
* @param WP_Post $post The current WP_Post object.
*/ */
public function column_cb( $post ) { public function column_cb( $post ) {
if ( current_user_can( 'edit_post', $post->ID ) ) { ?> if ( current_user_can( 'edit_post', $post->ID ) ) { ?>
@ -325,9 +328,12 @@ class WP_Media_List_Table extends WP_List_Table {
} }
/** /**
* @since 4.3.0 * Handles the title column output.
* *
* @param WP_Post $post * @since 4.3.0
* @access public
*
* @param WP_Post $post The current WP_Post object.
*/ */
public function column_title( $post ) { public function column_title( $post ) {
list( $mime ) = explode( '/', $post->post_mime_type ); list( $mime ) = explode( '/', $post->post_mime_type );
@ -370,9 +376,12 @@ class WP_Media_List_Table extends WP_List_Table {
} }
/** /**
* @since 4.3.0 * Handles the author column output.
* *
* @param WP_Post $post * @since 4.3.0
* @access public
*
* @param WP_Post $post The current WP_Post object.
*/ */
public function column_author( $post ) { public function column_author( $post ) {
printf( '<a href="%s">%s</a>', printf( '<a href="%s">%s</a>',
@ -382,18 +391,24 @@ class WP_Media_List_Table extends WP_List_Table {
} }
/** /**
* @since 4.3.0 * Handles the description column output.
* *
* @param WP_Post $post * @since 4.3.0
* @access public
*
* @param WP_Post $post The current WP_Post object.
*/ */
public function column_desc( $post ) { public function column_desc( $post ) {
echo has_excerpt() ? $post->post_excerpt : ''; echo has_excerpt() ? $post->post_excerpt : '';
} }
/** /**
* @since 4.3.0 * Handles the date column output.
* *
* @param WP_Post $post * @since 4.3.0
* @access public
*
* @param WP_Post $post The current WP_Post object.
*/ */
public function column_date( $post ) { public function column_date( $post ) {
if ( '0000-00-00 00:00:00' == $post->post_date ) { if ( '0000-00-00 00:00:00' == $post->post_date ) {
@ -416,9 +431,12 @@ class WP_Media_List_Table extends WP_List_Table {
} }
/** /**
* @since 4.3.0 * Handles the parent column output.
* *
* @param WP_Post $post * @since 4.3.0
* @access public
*
* @param WP_Post $post The current WP_Post object.
*/ */
public function column_parent( $post ) { public function column_parent( $post ) {
$user_can_edit = current_user_can( 'edit_post', $post->ID ); $user_can_edit = current_user_can( 'edit_post', $post->ID );
@ -462,9 +480,12 @@ class WP_Media_List_Table extends WP_List_Table {
} }
/** /**
* @since 4.3.0 * Handles the comments column output.
* *
* @param WP_Post $post * @since 4.3.0
* @access public
*
* @param WP_Post $post The current WP_Post object.
*/ */
public function column_comments( $post ) { public function column_comments( $post ) {
echo '<div class="post-com-count-wrapper">'; echo '<div class="post-com-count-wrapper">';
@ -476,10 +497,13 @@ class WP_Media_List_Table extends WP_List_Table {
} }
/** /**
* @since 4.3.0 * Handles output for the default column.
* *
* @param WP_Post $post * @since 4.3.0
* @param string $column_name * @access public
*
* @param WP_Post $post The current WP_Post object.
* @param string $column_name Current column name.
*/ */
public function column_default( $post, $column_name ) { public function column_default( $post, $column_name ) {
if ( 'categories' == $column_name ) { if ( 'categories' == $column_name ) {
@ -554,7 +578,7 @@ class WP_Media_List_Table extends WP_List_Table {
} }
/** /**
* Get the name of the default primary column. * Gets the name of the default primary column.
* *
* @since 4.3.0 * @since 4.3.0
* @access protected * @access protected
@ -622,7 +646,7 @@ class WP_Media_List_Table extends WP_List_Table {
} }
/** /**
* Generate and display row actions links. * Generates and displays row action links.
* *
* @since 4.3.0 * @since 4.3.0
* @access protected * @access protected

View File

@ -4,7 +4,7 @@
* *
* @global string $wp_version * @global string $wp_version
*/ */
$wp_version = '4.3-beta2-33178'; $wp_version = '4.3-beta2-33179';
/** /**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.