Make WordPress Core


Ignore:
Timestamp:
05/23/2024 07:37:08 PM (9 months ago)
Author:
ellatrix
Message:

Editor: Update npm packages.

Updates the editor npm packages to latest versions.

See https://github.com/WordPress/wordpress-develop/pull/6612.

Props ellatrix, mukesh27, youknowriad, mamaduka.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/blocks/site-logo.php

    r56065 r58187  
    88/**
    99 * Renders the `core/site-logo` block on the server.
     10 *
     11 * @since 5.8.0
    1012 *
    1113 * @param array $attributes The block attributes.
     
    6163/**
    6264 * Register a core site setting for a site logo
     65 *
     66 * @since 5.8.0
    6367 */
    6468function register_block_core_site_logo_setting() {
     
    7175            ),
    7276            'type'         => 'integer',
     77            'label'        => __( 'Logo' ),
    7378            'description'  => __( 'Site logo.' ),
    7479        )
     
    8085/**
    8186 * Register a core site setting for a site icon
     87 *
     88 * @since 5.9.0
    8289 */
    8390function register_block_core_site_icon_setting() {
     
    8895            'show_in_rest' => true,
    8996            'type'         => 'integer',
     97            'label'        => __( 'Icon' ),
    9098            'description'  => __( 'Site icon.' ),
    9199        )
     
    97105/**
    98106 * Registers the `core/site-logo` block on the server.
     107 *
     108 * @since 5.8.0
    99109 */
    100110function register_block_core_site_logo() {
     
    112122 * Overrides the custom logo with a site logo, if the option is set.
    113123 *
     124 * @since 5.8.0
     125 *
    114126 * @param string $custom_logo The custom logo set by a theme.
    115127 *
     
    125137/**
    126138 * Updates the site_logo option when the custom_logo theme-mod gets updated.
     139 *
     140 * @since 5.8.0
    127141 *
    128142 * @param  mixed $value Attachment ID of the custom logo or an empty value.
     
    144158 * Deletes the site_logo when the custom_logo theme mod is removed.
    145159 *
     160 * @since 5.8.0
     161 *
    146162 * @param array $old_value Previous theme mod settings.
    147163 * @param array $value     Updated theme mod settings.
     
    162178/**
    163179 * Deletes the site logo when all theme mods are being removed.
     180 *
     181 * @since 5.8.0
    164182 */
    165183function _delete_site_logo_on_remove_theme_mods() {
     
    180198 *
    181199 * Runs on `setup_theme` to account for dynamically-switched themes in the Customizer.
     200 *
     201 * @since 5.8.0
    182202 */
    183203function _delete_site_logo_on_remove_custom_logo_on_setup_theme() {
     
    190210/**
    191211 * Removes the custom_logo theme-mod when the site_logo option gets deleted.
     212 *
     213 * @since 5.9.0
    192214 */
    193215function _delete_custom_logo_on_remove_site_logo() {
Note: See TracChangeset for help on using the changeset viewer.