hm... if I want to extend DateTime and DateTimeImmutable properly, how do I share method implementations? can't think of anything but moving implementation to a trait
Finding a job you love should be easy and hassle-free, which is how we built Stack Overflow Jobs: Personalized job matches, and no recruiter spam. We’re expanding our promise to users today with even more magic.
I have non-developer questions in the following area:
Wordpress security
Wordpress Maintenance
Wordpress How to
I wonder if this forum is the right place to ask.
If not, where should I post questions related to above topic?
@gmazzap getting to tinker with Brain Monkey on my datetime stuff mini library :) quick question — how do I mock get_option() if I access more than one option?
I have a plugin that automatically specifies missing image dimensions (width x height) for all image types, for example:
<img src="https://dummyimage.com/350x150/aaaaaa/ffffff.png&text=PNG" />
becomes:
<img src="https://dummyimage.com/350x150/aaaaaa/ffffff.png&text=PNG" width="350" heigh...
@EthanJinksO'Sullivan that plugin looks to be super expensive performance wise to run, you could do what its doing inside page content and posts for a tiny fraction of the cost
@TomJNowell The reason behind this plugin is to ensure nothing was missed. Also, I have a shortcode that I use to generate images that doesn't allow me to set the dimensions
an output buffer operates on the finished product long after object caches have been accessed, the only way to cache this is with a full page cache on the server level
there might also be issues if somebody puts an image tag linking to a truly gigantic image, you'll get memory exceeded issues