Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #57913, comment 21


Ignore:
Timestamp:
03/16/2023 11:19:18 PM (18 months ago)
Author:
azaozz
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #57913, comment 21

    initial v1  
    99The complication there is that the option overrides the `add_theme_support` setting. I.e. when an existing site wants to disable attachment pages, the option will have to be changed to `false` (only once). This probably won't be a big problem but would need to be documented well (in the code and on make/core).
    1010
    11 The other (simpler?) possibility would be to have a "negative" `add_theme_support` setting, maybe something like
     11The other (simpler?) possibility would be to have a negative `add_theme_support` setting, maybe something like:
    1212{{{
    1313add_theme_support( 'disable-attachment-pages' );