Make WordPress Core

Changeset 46826


Ignore:
Timestamp:
12/07/2019 01:21:07 PM (5 years ago)
Author:
johnbillion
Message:

Docs: Further docblock corrections and improvements.

See #48303

Location:
trunk/src/wp-admin/includes
Files:
4 edited

Legend:

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

    r46821 r46826  
    971971 *
    972972 * @param object $object The post type or taxonomy meta-object.
    973  * @return object The post type of taxonomy object.
     973 * @return object The post type or taxonomy object.
    974974 */
    975975function _wp_nav_menu_meta_box_object( $object = null ) {
  • trunk/src/wp-admin/includes/post.php

    r46823 r46826  
    1616 * @param bool $update Are we updating a pre-existing post?
    1717 * @param array $post_data Array of post data. Defaults to the contents of $_POST.
    18  * @return object|bool WP_Error on failure, true on success.
     18 * @return array|WP_Error Array of post data on success, WP_Error on failure.
    1919 */
    2020function _wp_translate_postdata( $update = false, $post_data = null ) {
     
    202202 *
    203203 * @param array $post_data Array of post data. Defaults to the contents of $_POST.
    204  * @return object|bool WP_Error on failure, true on success.
     204 * @return array|WP_Error Array of post data on success, WP_Error on failure.
    205205 */
    206206function _wp_get_allowed_postdata( $post_data = null ) {
  • trunk/src/wp-admin/includes/screen.php

    r46662 r46826  
    4949 *
    5050 * @param string|WP_Screen $screen The screen you want the hidden columns for
    51  * @return array
     51 * @return string[] Array of IDs of hidden columns.
    5252 */
    5353function get_hidden_columns( $screen ) {
     
    6868         * @since 4.4.0
    6969         *
    70          * @param array     $hidden An array of columns hidden by default.
     70         * @param string[]  $hidden Array of IDs of columns hidden by default.
    7171         * @param WP_Screen $screen WP_Screen object of the current screen.
    7272         */
     
    8080     * @since 4.4.1 Added the `use_defaults` parameter.
    8181     *
    82      * @param array     $hidden An array of hidden columns.
    83      * @param WP_Screen $screen WP_Screen object of the current screen.
     82     * @param string[]  $hidden       Array of IDs of hidden columns.
     83     * @param WP_Screen $screen       WP_Screen object of the current screen.
    8484     * @param bool      $use_defaults Whether to show the default columns.
    8585     */
  • trunk/src/wp-admin/includes/user.php

    r46804 r46826  
    552552 * @since 2.7.0
    553553 *
    554  * @param object $user User data object.
     554 * @param WP_User $user User data object.
    555555 */
    556556function use_ssl_preference( $user ) {
Note: See TracChangeset for help on using the changeset viewer.