« first day (4121 days earlier)      last day (823 days later) » 

9:15 AM
Behold, my first question over at SO:
0
Q: Define dark mode for both a class and a media query, without repeat CSS custom properties declarations, and allow users to switch between color modes

Christine CooperI have: body { background: white; } To display dark mode, I use dark class: .dark body { background: black; } And to detect if user has their OS set to use dark theme, we have prefers-color-scheme: @media (prefers-color-scheme: dark) { body { background: black; } } And then we have the idea ...

I have a total of 3 points there. lol
 
9:44 AM
Anyone else seeing this warning using latest version of WP 5.9 and php8+:
Trying to access array offset on value of type bool in block-editor.php on line 348
Likely an issue with WP 5.9...
Seeing this on post edit screen.
Found it. Was related to a function adjusting the editor-font-sizes....
The exact code which triggered this issue:
// disable color picker on paragraphs
add_theme_support( 'editor-color-palette' );
The solution is to add an empty array in the argument:
add_theme_support( 'editor-color-palette', array());
I did it folks. =D
 
 
6 hours later…
4:04 PM
Most of our customer sites run in docker on a single root server. So setting memory_limit = -1 in php.ini for these should be OK, as it can consume all the memory of that machine then. Or are there any dangers with this?
(I know, it is not solving issues - but for some tasks we need a lot of memory and have some rare cases where memory leak is hard to debug.)
 
 
6 hours later…
10:16 PM
@ChristineCooper technically PHP 8 is unsupported officially
 

« first day (4121 days earlier)      last day (823 days later) »