Make WordPress Core

Changeset 59896


Ignore:
Timestamp:
03/02/2025 12:41:48 AM (3 months ago)
Author:
johnbillion
Message:

Docs: Various improvements to inline documentation.

See #62281

Location:
trunk
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/misc.php

    r59800 r59896  
    626626 *
    627627 * @param string $content
    628  * @return array
     628 * @return string[] Array of function names.
    629629 */
    630630function wp_doc_link_parse( $content ) {
  • trunk/src/wp-admin/includes/post.php

    r58983 r59896  
    494494 * @param array|null $post_data Optional. The array of post data to process.
    495495 *                              Defaults to the `$_POST` superglobal.
    496  * @return array
     496 * @return array {
     497 *     An array of updated, skipped, and locked post IDs.
     498 *
     499 *     @type int[] $updated An array of updated post IDs.
     500 *     @type int[] $skipped An array of skipped post IDs.
     501 *     @type int[] $locked  An array of locked post IDs.
     502 * }
    497503 */
    498504function bulk_edit_posts( $post_data = null ) {
     
    12121218 * @param array|false $q Optional. Array of query variables to use to build the query.
    12131219 *                       Defaults to the `$_GET` superglobal.
    1214  * @return array
     1220 * @return string[] An array of all the statuses for the queried post type.
    12151221 */
    12161222function wp_edit_posts_query( $q = false ) {
     
    13841390 * @param array|false $q Optional. Array of query variables to use to build the query.
    13851391 *                       Defaults to the `$_GET` superglobal.
    1386  * @return array
     1392 * @return array {
     1393 *     Array containing the post mime types and available post mime types.
     1394 *
     1395 *     @type array[]  $post_mime_types       Post mime types.
     1396 *     @type string[] $avail_post_mime_types Available post mime types.
     1397 * }
    13871398 */
    13881399function wp_edit_attachments_query( $q = false ) {
  • trunk/src/wp-admin/includes/user.php

    r57120 r59896  
    314314
    315315    /**
    316      * Filters the user's drafts query string.
     316     * Filters the SQL query string for the user's drafts query.
    317317     *
    318318     * @since 2.0.0
  • trunk/src/wp-includes/script-loader.php

    r59823 r59896  
    20962096 * @global bool $concatenate_scripts
    20972097 *
    2098  * @return array
     2098 * @return string[] Handles of the scripts that were printed.
    20992099 */
    21002100function print_head_scripts() {
     
    21352135 * @global bool       $concatenate_scripts
    21362136 *
    2137  * @return array
     2137 * @return string[] Handles of the scripts that were printed.
    21382138 */
    21392139function print_footer_scripts() {
     
    22162216 * @global WP_Scripts $wp_scripts
    22172217 *
    2218  * @return array
     2218 * @return string[] Handles of the scripts that were printed.
    22192219 */
    22202220function wp_print_head_scripts() {
     
    22812281 * @global bool $concatenate_scripts
    22822282 *
    2283  * @return array
     2283 * @return string[] Handles of the styles that were printed.
    22842284 */
    22852285function print_admin_styles() {
  • trunk/src/wp-includes/update.php

    r59865 r59896  
    892892 * @since 3.3.0
    893893 *
    894  * @return array
     894 * @return array {
     895 *     Fetched update data.
     896 *
     897 *     @type int[]   $counts       An array of counts for available plugin, theme, and WordPress updates.
     898 *     @type string  $update_title Titles of available updates.
     899 * }
    895900 */
    896901function wp_get_update_data() {
  • trunk/tests/phpunit/includes/abstract-testcase.php

    r59729 r59896  
    14631463     *
    14641464     * @param string $dir Path to the directory to scan.
    1465      * @return array List of file paths.
     1465     * @return string[] List of file paths.
    14661466     */
    14671467    public function files_in_dir( $dir ) {
     
    14841484     * @since 4.0.0
    14851485     *
    1486      * @return array List of file paths.
     1486     * @return string[] List of file paths.
    14871487     */
    14881488    public function scan_user_uploads() {
Note: See TracChangeset for help on using the changeset viewer.