mathieu
Forum Replies Created
-
Ok thanks a lot 🙂
But from all the tests I have done, the pre_option_* filters become the defacto values used by the plugin. I don’t need to save for it to be and I couldn’t even overwrite those values if I wanted.
So what would the “relevanssi_update_options” hook do that the pre_option filter doesn’t?
I guess it would generate the initial index properly? Is there something I get wrong.
Thanks for your time Mikko
Ah ! It’s perfect Mikko. Thanks.
For those who stumble upon that thread, here’s my code… it automatically includes every post type that isn’t exclude_from_search at the WordPress level.
add_filter("pre_option_relevanssi_index_post_types", function () { $list = array(); foreach (get_post_types(array("exclude_from_search"=>false)) as $post_type) { $list[] = $post_type; } return $list; });Forum: Plugins
In reply to: [Autoptimize] Does it still makes sense to activate AO lazyload?Oh well, I fixed it… It was some bug with multisite and shortpixel. I had to dig deep into the code and filter some stuff.
What set me off was that since you add an SVG in the src attribute of the image, it is enough to make Page Insights shut up about next-gen images even if that is not the case.
Well, all is good and if somebody stumbles upon that thread and wonders how I fixed it, here it is.
add_filter('shortpixel_webp_image_base', 'correctBaseShortPixelWebP', 1, 1); if (!function_exists("correctBaseShortPixelWebP")) { function correctBaseShortPixelWebP($base) { return str_replace(ABSPATH, ABSPATH."wp-content/blogs.dir/".get_current_blog_id()."/", $base); } }Have a nice day.
Forum: Plugins
In reply to: [Autoptimize] Does it still makes sense to activate AO lazyload?Honestly Frank, I do trust you because you’ve helped me so much but I just don’t get this one. It’s been two weeks, I am trying to figure this out and I can’t wrap my head around it.
In the summer… or the spring maybe… AO + ShortPixel would show a <picture> tag and my webp images would be served. Google page insight was happy.
But right now, when AO lazyload is activated, there’s no picture tag… when I go to Chrome network console, this is all jpeg, png, etc but no webp. However, Google says I am serving next-generation images like everything is alright.
I did try with WordPress native lazyload and Google does bitch about not serving next-generation images and score was indeed lower.
So OK, your lazyloading solution win, but what’s the sorcery with my next-gen images? Am I serving them and why it’s not showing up anywhere?
Best regards,
Forum: Plugins
In reply to: [Redirection] Database update failed…Ok good thanks
Forum: Developing with WordPress
In reply to: I need to get the Widget Area inside the widget instanceThanks a lot Steve.
Pretty easy in the end but I always have a tough time with Widget stuff.
Have a nice weekend,
Forum: Fixing WordPress
In reply to: Filter the commenter email link in the admin areaHi bcworkz,
yes it is absolutely part of the default WP.
Here is a screenshot of the section I am talking about : https://prnt.sc/p0cp0b
I am trying to filter the blurred data to help my workflow.
Regards,
Forum: Plugins
In reply to: [Autoptimize] Bunch of empty lines in the headerYes, I’ll check that more closely when I have the chance.
Thanks Frank.
Forum: Plugins
In reply to: [Autoptimize] Bunch of empty lines in the headerI can’t really disable it a sunday afternoon like that. It might kill my server.
However, I just checked and I didn’t have html minification checked in AO and neither in W3TC.
I checked it in AO but now I remember why it was disabled. It does generate some very weird HTML with meta on one line and the rest on another.
??
Thanks a lot. It was a lot easier than I thought at first 🙂
Forum: Plugins
In reply to: [Autoptimize] Building a file in the header and in the footerI am not sure if it definitely *needs* to be in the <head> but the technology is called “header-bidding” so I assume it does.
Thanks for everything, I’ll definitely give you feedback about the new version but I’ll wait for it 🙂
Have a nice day,
Forum: Plugins
In reply to: [Autoptimize] Building a file in the header and in the footerThanks a lot Frank. I’ll have to find a way another way to combine them or just let it go have two files. With http2 it probably doesnt matter much.
Also, do you have an ETA for the new version? I can’t wait to test the lazy loading feature.
Have a nice day.
I updated to 10.1.3 and everything does seem fine.
Thanks.
Hi,
I can’t really help with the disabling of plugin on my live website, but here’s a screenshot I took of the mysql process queue yesterday when the load got very high very quickly.
Maybe that can help….