Docs: Docs on docs. Further improve documentation of known return types, plus other docs fixes.

See #48303


git-svn-id: https://develop.svn.wordpress.org/trunk@46662 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
John Blackbourn
2019-11-05 21:28:51 +00:00
parent 3cdee7a705
commit 46581088d5
15 changed files with 49 additions and 43 deletions

View File

@@ -170,7 +170,7 @@ class WP_Users_List_Table extends WP_List_Table {
*
* @global string $role
*
* @return array An array of HTML links, one for each view.
* @return string[] An array of HTML links keyed by their view.
*/
protected function get_views() {
global $role;
@@ -259,7 +259,7 @@ class WP_Users_List_Table extends WP_List_Table {
*
* @since 3.1.0
*
* @return array Array of bulk actions.
* @return string[] Array of bulk action labels keyed by their action.
*/
protected function get_bulk_actions() {
$actions = array();
@@ -348,8 +348,7 @@ class WP_Users_List_Table extends WP_List_Table {
*
* @since 3.1.0
*
* @return array Array in which the key is the ID of the column,
* and the value is the description.
* @return string[] Array of column titles keyed by their column name.
*/
public function get_columns() {
$c = array(