-
Notifications
You must be signed in to change notification settings - Fork 171
Fix for broken relevant search in issue 359 #361
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
So this requires re-installing all the sites in order for searching to work? |
@scottgonzalez we have multiple options:
|
@jquery/infrastructure How do you want to handle this? |
@scottgonzalez Any progress? |
I'm really not sure what we should do. I feel like whatever solution we use has to Just Work, otherwise everyone will end up with broken sites. @nacin thoughts? |
Ok, as I understand I need to implement third approach:
We will check some flag on each request and update Relevanssi settings if they are not set up yet. |
Ok, let's try that out. |
@scottgonzalez I took the time and moved Relevanssi installation from blog install to blog init (on each user request). Now it will "Just Work" :). |
hey, guys, let's close this bug |
I'm still interested in hearing @nacin's thoughts on this. |
@arthurvr so will he say anything? :) |
Still waiting? :-) |
lol, yes :) |
@scottgonzalez @gnarf @Krinkle who would be best to review this? |
I can give this a shot, although I don't have rights in this specific repo at the moment. @PaulAnnekov Can you clarify how The previous way of calling a function explicitly was easier to follow. I've been working on various WordPress sites, plugins, and themes for years, but don't have much experience with MU/Multisite yet (aside from the occasional fix on jQuery sites). I thought perhaps |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor nit. After this and clarification per the above, I'm willing to land this and verify on staging.
mu-plugins/_loader.php
Outdated
@@ -14,4 +14,5 @@ | |||
} | |||
unset( $live_domain, $subdomain, $domain_specific_file, $type_specific_file ); | |||
|
|||
require_once(WPMU_PLUGIN_DIR . '/relevanssi/relevanssi.php'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Avoid using require_once
like a function with parenthesis. Instead, use it as a statement like the line below.
@Krinkle this article will answer ALL your questions https://codex.wordpress.org/Must_Use_Plugins. WordPress runs only directly placed in
That's it. I have fixed what you requested. |
Fixes jquery#359 Closes jquery#361 Closes jquery#408
I have added the Relevanssi plugin to mu-plugins folder and added its initialization during a site installation phase. Try it.
Issue: Search at api.jquery.com gives inaccurate results.