... yes its a problem with a theme, but it hardly seems like it's more on-topic for stackoverflow as a general PHP question.
not that I'm going to bother re-posting it now it's solved, but it seems like this community wants to avoid actually getting any content on its subexchange if there's no answers, and just a bunch of votes to close a WordPress development question.
@Chris, by that logic every wordpress question is also a mysql question and a linux question. some of them actually are, but it is very very rare. You are more then welcome to read this meta.wordpress.stackexchange.com/questions/3974/… and stay around to answer cherry framework questions.
Untill someone will be willing to own those questions there is not much point in leaving them open when the chance of them recieving useful answer is zero.
Oh, and you die once when there's a \WP_Error instance but return a full \WP_Error object if there was an \Exceptionanywhere happening. Is this running recursively? If yes, then the logic is wrong. If no, then it's very inconsistent with return value types.
Hope that helps.
One more thing: wp_remote_retrieve_response_code() could get wrapped in absint() so you can safely check !== 200. You might want to check for || "OK" !== wp_remote_retrieve_response_message() as well. And keep in mind that 80% of all servers report 200/OK even if they fail.
If you want to speed things up, you can do a wp_remote_head() to see if the server responds properly before doing the actual full request.
wouldn't even blame you if you said it was bad... it's not great, although sales might say otherwise, I prefer Ether content builder from a UX perspective.
I've read both codebases, they are nightmareish...
but what makes me kinda angry: those people can not differentiate between wordpress, a plugin, development..all there is left: this wordpress-thing seems to suck.
even my associates (who run agencies) start there... then, I pick up the pieces (problems)
there is a sliding scale of clientele, up market boutique type clients who have intimate needs, good budgets and a real understanding of tech (or at least what it takes to get a good project built), then it quickly descends into madness from there...
are plugins which weren't updated for long time ignored when searching throught the backend...looking for kint debugger, it's in the directory but doesn't appear in the search
In theory, if WordPress has an outdated plugin and automatic plugin updates are turned on ( true ), then the next time somebody logs into WP the plugin should update assuming it's been 13 hours or more, correct?
I have automatic plugin updates turned on and a 5 day old plugin :/ - - I don't understand the conditions that need to be met for plugins to update.
Well, I am logged into the admin panel and I've been moving around and it still hasn't updated.
I've been trying to look through some of the DEV docs but it seems like a run around to find more information on it :/
I believe the plugin update transient is supposed to be key to updating it ( or maybe it's just checking for updates ) but when I spit that out it shows todays date and time of when I logged in
Hi @StephenHarris , I'm using the genesis framework, basically I wish to load style.css async, I have a method where I can do these by adding a parameter #asynload to the url
I'm using the child sample theme too
this*
dequeue and enqueue the style.css with the parameter seemed like the best solution, do you know of an alternative method?
@UzumakiDev I don't know the Gen esis framework, so I don't know if there's a better way -but in general, that's good as anything else. You can also catch it when it's printed to the page.
Genesis might have a fixed handle for loading the theme stylesheet but in general themes don't have to load style.css, they don't even need to use wp_enqueue_style() (though they should), and if even they did they could call what they liked ;).
@UzumakiDev Looking at the source code would be easier. Try grep -irl style.css for starters :)
^(On linux at least...)
@Howdy_McGee Add error logs to see what's being called what's not? (For what it's worth updates are checked very 24 hours, 1 hour on the plug-ins page and every time the updates page is visited. I guess background updates will do the same...
Also, not sure if this is right, but I think WordPress won't update major/minor versions, just patches. (i.e. 4.0.1 -> 4.0.2 ok, but 4.0.1 -> 4.1.0 not)
@UzumakiDev That str_replace call is doing nothing. Also, I don't think that's the right hook, it's triggered in esc_url(). Also it appends async to every url, and I think it might required ?/& if it's a url parameter...
@StephenHarris For whatever reason the hook won't actually fire. I have it as a simple function in Mu-Plugins which just has error_log() and return true, then i added another one in the themes functions.phpfile to see if maybe it was location but neither seem to fire. I can log before and after the hook but not inside the hook. Any ideas on what I can do to make this actually fire?
Check Updates button doesn't seem to fire it
I manually updated the plugin in hopes of the filter firing... it didn't. Now I've lost my test subject :(