WordPress.org

Make WordPress Core

Changeset 42778


Ignore:
Timestamp:
03/04/2018 10:06:46 PM (4 years ago)
Author:
SergeyBiryukov
Message:

Docs: Expand delete_theme() return value, fix typo in delete_plugins() return value.

See #42505.

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

Legend:

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

    r42777 r42778  
    817817 * @param array  $plugins    List of plugins to delete.
    818818 * @param string $deprecated Deprecated.
    819  * @return bool|null|WP_Error True on success, false is $plugins is empty, WP_Error on failure.
     819 * @return bool|null|WP_Error True on success, false if `$plugins` is empty, WP_Error on failure.
    820820 *                            Null if filesystem credentials are required to proceed.
    821821 */
  • trunk/src/wp-admin/includes/theme.php

    r42777 r42778  
    1414 * @global WP_Filesystem_Base $wp_filesystem WordPress filesystem subclass.
    1515 *
    16  * @param string $stylesheet Stylesheet of the theme to delete
    17  * @param string $redirect Redirect to page when complete.
    18  * @return void|bool|WP_Error When void, echoes content.
     16 * @param string $stylesheet Stylesheet of the theme to delete.
     17 * @param string $redirect   Redirect to page when complete.
     18 * @return bool|null|WP_Error True on success, false if `$stylesheet` is empty, WP_Error on failure.
     19 *                            Null if filesystem credentials are required to proceed.
    1920 */
    2021function delete_theme( $stylesheet, $redirect = '' ) {
Note: See TracChangeset for help on using the changeset viewer.