diff -r 490d5cc509ed -r cf61fcea0001 wp/wp-admin/custom-header.php --- a/wp/wp-admin/custom-header.php Tue Jun 09 11:14:17 2015 +0000 +++ b/wp/wp-admin/custom-header.php Mon Oct 14 17:39:30 2019 +0200 @@ -10,15 +10,13 @@ * The custom header image class. * * @since 2.1.0 - * @package WordPress - * @subpackage Administration */ class Custom_Image_Header { /** * Callback for administration header. * - * @var callback + * @var callable * @since 2.1.0 */ public $admin_header_callback; @@ -26,7 +24,7 @@ /** * Callback for header div. * - * @var callback + * @var callable * @since 3.0.0 */ public $admin_image_div_callback; @@ -36,11 +34,13 @@ * * @var array * @since 3.0.0 - * @access private */ public $default_headers = array(); /** + * Used to trigger a success message when settings updated and set to true. + * + * @since 3.0.0 * @var bool */ private $updated; @@ -49,8 +49,8 @@ * Constructor - Register administration header callback. * * @since 2.1.0 - * @param callback $admin_header_callback - * @param callback $admin_image_div_callback Optional custom image div output callback. + * @param callable $admin_header_callback + * @param callable $admin_image_div_callback Optional custom image div output callback. */ public function __construct($admin_header_callback, $admin_image_div_callback = '') { $this->admin_header_callback = $admin_header_callback; @@ -120,8 +120,8 @@ get_current_screen()->set_help_sidebar( '
' . __( 'For more information:' ) . '
' . - '' . __( 'Documentation on Custom Header' ) . '
' . - '' . __( 'Support Forums' ) . '
' + '' . __( 'Documentation on Custom Header' ) . '
' . + '' . __( 'Support Forums' ) . '
' ); } @@ -228,6 +228,8 @@ * Process the default headers * * @since 3.0.0 + * + * @global array $_wp_default_headers */ public function process_default_headers() { global $_wp_default_headers; @@ -255,6 +257,9 @@ * Random image option is on by default if no header has been set. * * @since 3.0.0 + * + * @param string $type The header type. One of 'default' (for the Uploaded Images control) + * or 'uploaded' (for the Uploaded Images control). */ public function show_header_selector( $type = 'default' ) { if ( 'default' == $type ) { @@ -267,7 +272,7 @@ if ( 1 < count( $headers ) ) { echo '