Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #51296, comment 5


Ignore:
Timestamp:
10/19/2020 10:50:55 PM (4 years ago)
Author:
SergeyBiryukov
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #51296, comment 5

    initial v1  
    88Just noting that this seemed like a good idea, but turned out a bit more complicated, as there are a couple of scenarios where it returns `null`:
    99* If the theme mod was not set.
    10 * If if it was the last remaining theme mod for the theme.
     10* If it was the last remaining theme mod for the theme.
    1111
    1212So adding a return value to `remove_theme_mod()` could be explored in a new ticket if someone feels strongly about it :)