Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #60734


Ignore:
Timestamp:
03/09/2024 10:31:21 AM (9 months ago)
Author:
sabernhardt
Comment:

Hi and welcome to WordPress Core Trac!

When [37361] removed Open Sans from the admin, the script loader continued to register the 'open-sans' handle for any themes or plugins already using the stylesheet (ticket:36753#comment:6).

Directory searches found plugins and themes referring to an 'open-sans' style. Some of them enqueue/print the old Core stylesheet, some deregister it, and some make their own stylesheet.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #60734

    • Property Component changed from General to Script Loader
    • Property Type changed from feature request to enhancement
    • Property Summary changed from Open Sans mystery to Deregistering Open Sans
  • Ticket #60734 – Description

    initial v1  
    11I have wasted an entire day trying to figure out why my Open Sans styles were not applying. This is counterproductive/suboptimal.
    22
    3 As it turns out, Open Sans was packed in WP back in 2014, which is fine by me. More info: https://core.trac.wordpress.org/ticket/28478
     3As it turns out, Open Sans was packed in WP back in 2014, which is fine by me. More info: #28478
    44
    5 However it is **not** immediately **obvious** one needs to wp_deregister_style('open-sans'); before he can register his own style.
     5However it is **not** immediately **obvious** one needs to `wp_deregister_style('open-sans');` before he can register his own style.
    66
    7 Please, consider making an exception and make wp_register_style() automatically wp_deregister_style(X) if X equals 'open-sans'. Otherwise consider other courses of action that may prevent others from incurring in the same problem I did.
     7Please, consider making an exception and make `wp_register_style()` automatically `wp_deregister_style(X)` if X equals 'open-sans'. Otherwise consider other courses of action that may prevent others from incurring in the same problem I did.
    88
    99Thanks.