Make WordPress Core


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

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

See #42505.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.