mundschenk-at / wp-typography

Improve your WordPress micro typography.

Home Page:https://code.mundschenk.at/wp-typography/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Default styles

theamnesic opened this issue · comments

Hi @mundschenk-at !

I just noticed that you add default-styles.css by default in the wp_head since 5.9, even if Include styling for CSS hooks. option is unchecked.

Is it possible not to include it, by a hook or in plugin settings?

Thanks!

I am not sure what you mean? default-styles.css is only used to load the default styles option if you reset your settings.

The only stylesheet logic in the plugin adds an inline style (and not default-styles.css directly) when enabling the `Include styling for CSS hooks." option. That's been unchanged since 2019.

Sorry, I wanted to say the content of default-styles.css.
So I think It's a bug.

My settings :

Capture d’écran 2023-02-07 à 11 04 51

But, the inline default-styles.css content in my header :

Capture d’écran 2023-02-07 à 11 05 04

Clearing the cache doesn't change anything.

Maybe since this one, line 251?


WordPress : 6.1.1
wp-Typography : 5.9.1
PHP : 8.0.8

Sorry for not getting back to this earlier, do you still have this problem?

I just re-read the line you pointed out and indeed I accidentally removed the guard condition *oops*

Hi @mundschenk-at

Do you have any idea of the 5.9.2 release date?

Thanks!

Really soon now (sorry, I got sidetracked last year). I am currently updating the underlying PHP-Typography package, so that there will be some additional typographic improvements (well, bug fixes mostly).