Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #53770, comment 16


Ignore:
Timestamp:
07/28/2021 07:05:04 PM (3 years ago)
Author:
hellofromTonya
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #53770, comment 16

    initial v1  
    3131The options database values are correct, but running `get_theme_mod( 'custom_logo' )` returns the `site_logo` option instead of the theme's mod.
    3232
    33 This means once you set a site logo, it'll stay the same when switching between themes. Looking in the database could cause confusion. But from a site owner point of view, they can set the logo once and not worry about switching themes changing the site logo unexpectedly.
     33This means once you set a site logo, it'll stay the same when switching between themes. Looking in the database could cause confusion. Not sure if this change is by design or an edge case. Needs investigation.
    3434
    3535>I looked into the database. With WP 5.8, the custom_logo returned is from another theme's theme_mods_ in the options table. How is this possible?