megabulk2
Forum Replies Created
-
Forum: Plugins
In reply to: [ActivityPub] How to remove inline CSS added to header@rghedin perfect, thanks!
Forum: Plugins
In reply to: [ActivityPub] How to remove inline CSS added to header@jeherve unfortunately that’s not working for me.
Activityhub puts CSS with ids “activitypub-followers-style-inline-css” and “activitypub-follow-me-style-inline-css” into the header and I can’t see how to disable them.
It seems to me that Vimeo Pro is not returning values from the get_video_meta_from_url function. This line “$response = $this->cache_read( $cache_key );” returns a 404 not found. (I’m calling do_shortcode(‘[fve]https://vimeo.com/xxxxxxx{/fve]’) manually. Maybe that has something to do with it.) Thus the aspect ratio doesn’t get calculated correctly.
Thanks for the solution, klas_e! That was driving me a little nuts.
Forum: Plugins
In reply to: [plugin: Subscribe2] Digest sent at UTC time, not at local blog timeGreat, thanks much!
Forum: Plugins
In reply to: [plugin: Subscribe2] Digest sent at UTC time, not at local blog timeYes,
get_option('timezone_string')
returns “America/New_York”, which is correct for me. I also think that setting the correct timezone will allow PHP to try to figure out whether Daylight Savings Time is in effect, so maybe that kills two birds. Great!Forum: Plugins
In reply to: [plugin: Subscribe2] Digest sent at UTC time, not at local blog timeAh, figured it out, I think. Your code is using
mktime($_POST['hour'], 0, 0, date('m', $time), date('d', $time), date('Y', $time));
On my server,
date_default_timezone_get()
yields “UTC”
ini_get('date.timezone')
yields “America/Boise” (maybe that’s where the server’s located)I’m pretty sure that you’ll need to set the timezone before calling mktime, with this: https://www.php.net/manual/en/function.date-default-timezone-set.php
It looks like this code is what you need: https://wordpress.stackexchange.com/questions/8400/how-to-get-wordpress-time-zone-setting
So before calling mktime, I think you can just use
date_default_timezone_set(get_option('timezone_string'))
I will give it a shot.
Forum: Plugins
In reply to: [plugin: Subscribe2] Digest sent at UTC time, not at local blog timeI think the problem is twofold. One’s that the scheduler isn’t respecting DST (and thanks for filing the bug report with WordPress).
The other is that your plugin is sending out the digest at UTC time, and not at the blog time. I set your plugin to send out the digest at 5PM EST, and it gets sent out at 1PM EST, which is 5PM UTC. Then I set the plugin to send out the digest at 2PM EST, and it got sent out at 10AM EST, which is 2PM UTC.
See what I mean? I’m unsure whether this problem is with your plugin, or with WordPress, or with the server where my blog is hosted. I’ll keep playing with it and see if I can figure it out.
Forum: Plugins
In reply to: [plugin: Subscribe2] Digest sent at UTC time, not at local blog timeThanks for the speedy response. It’s also a bug in that it says, e.g., “Next email notification will be sent when your blog time is after: 7.1.11 @ 2:00 pm”, but it should really say “Next email notification will be sent when the UTC time is after: 7.1.11 @ 2:00 pm”.
IOW, it’s *not* sending out the digest according to the blog time, even though it claims to.
I’m pretty sure that PHP’s date function can account for Daylight Savings Time in many cases… Or this might be of use: https://docstore.mik.ua/orelly/webprog/pcook/ch03_13.htm
thanks!
Jonathan