Add missing summaries, `@access` tags, and some parameter descriptions for methods added to `WP_Links_List_Table` in 4.3.

See [32753]. See #32891.

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


git-svn-id: http://core.svn.wordpress.org/trunk@33176 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Drew Jaynes 2015-07-13 18:03:24 +00:00
parent 5b34f6faff
commit d1a3d2e6ea
2 changed files with 42 additions and 18 deletions

View File

@ -152,9 +152,12 @@ class WP_Links_List_Table extends WP_List_Table {
} }
/** /**
* @since 4.3.0 * Handles the checkbox column ouput.
* *
* @param object $link * @since 4.3.0
* @access public
*
* @param object $link The current link object.
*/ */
public function column_cb( $link ) { public function column_cb( $link ) {
?> ?>
@ -164,9 +167,12 @@ class WP_Links_List_Table extends WP_List_Table {
} }
/** /**
* @since 4.3.0 * Handles the link name column ouput.
* *
* @param object $link * @since 4.3.0
* @access public
*
* @param object $link The current link object.
*/ */
public function column_name( $link ) { public function column_name( $link ) {
$edit_link = get_edit_bookmark_link( $link ); $edit_link = get_edit_bookmark_link( $link );
@ -178,9 +184,12 @@ class WP_Links_List_Table extends WP_List_Table {
} }
/** /**
* @since 4.3.0 * Handles the link URL column ouput.
* *
* @param object $link * @since 4.3.0
* @access public
*
* @param object $link The current link object.
*/ */
public function column_url( $link ) { public function column_url( $link ) {
$short_url = url_shorten( $link->link_url ); $short_url = url_shorten( $link->link_url );
@ -188,11 +197,14 @@ class WP_Links_List_Table extends WP_List_Table {
} }
/** /**
* Handles the link categories column output.
*
* @since 4.3.0 * @since 4.3.0
* @access public
* *
* @global $cat_id * @global $cat_id
* *
* @param object $link * @param object $link The current link object.
*/ */
public function column_categories( $link ) { public function column_categories( $link ) {
global $cat_id; global $cat_id;
@ -213,18 +225,24 @@ class WP_Links_List_Table extends WP_List_Table {
} }
/** /**
* @since 4.3.0 * Handles the link relation column ouput.
* *
* @param object $link * @since 4.3.0
* @access public
*
* @param object $link The current link object.
*/ */
public function column_rel( $link ) { public function column_rel( $link ) {
echo empty( $link->link_rel ) ? '<br />' : $link->link_rel; echo empty( $link->link_rel ) ? '<br />' : $link->link_rel;
} }
/** /**
* @since 4.3.0 * Handles the link visibility column ouput.
* *
* @param object $link * @since 4.3.0
* @access public
*
* @param object $link The current link object.
*/ */
public function column_visible( $link ) { public function column_visible( $link ) {
if ( 'Y' === $link->link_visible ) { if ( 'Y' === $link->link_visible ) {
@ -235,19 +253,25 @@ class WP_Links_List_Table extends WP_List_Table {
} }
/** /**
* @since 4.3.0 * Handles the link rating column ouput.
* *
* @param object $link * @since 4.3.0
* @access public
*
* @param object $link The current link object.
*/ */
public function column_rating( $link ) { public function column_rating( $link ) {
echo $link->link_rating; echo $link->link_rating;
} }
/** /**
* @since 4.3.0 * Handles the default column output.
* *
* @param object $link * @since 4.3.0
* @param string $column_name * @access public
*
* @param object $link Link object.
* @param string $column_name Current column name.
*/ */
public function column_default( $link, $column_name ) { public function column_default( $link, $column_name ) {
/** /**
@ -275,7 +299,7 @@ class WP_Links_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-33203'; $wp_version = '4.3-beta2-33204';
/** /**
* 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.