[KADENCE USES IT] Bugfix: multisite token logic#51
Conversation
… in subfolder mode
Bugfix/empty domain
update the get_license_key function to be able to get from a file
Co-authored-by: Justin <defunctl@users.noreply.github.com>
Co-authored-by: Justin <defunctl@users.noreply.github.com>
Add caching to a false response for is auth to prevent requests every page load.
get_transient doesn't return an integer, so we need to store and test against a string
fix for cache miss
Bugfix/api base url filter
|
@defunctl do you know what (if anything) is blocking this being reviewed and merged? We could use it for: https://github.com/iconicwp/iconic-core/pull/50#issuecomment-3670503301 |
Hey @dave-green-uk Basically I created this for Kadence in a hurry to launch the AI licensing. Because it's such a major change, I'm not sure how many sites it could affect/break if merged. I just know that Kadence does currently uses this branch in production. |
| if ( is_wp_error( $is_authorized ) ) { | ||
| // Don't cache errors. | ||
| return false; |
There was a problem hiding this comment.
Maybe cache errors but cache them for a shorter amount of time ? not caching errors could potentially result in our service being overwhelmed,
| $info->sections = [ 'description' => '' ]; | ||
| } | ||
| $slug = ! empty( $info->slug ) ? $info->slug : 'unknown'; | ||
| $info = apply_filters('stellarwp/uplink/' . $slug . '/to_wp_format', $info); |
|
@defunctl if you can resolve the conflicts, it would be very helpful. Thanks. |
Main Changes
This PR completely changes the way Uplink treats multisite installations. See the new multisite licensing documentation.
Other