-
Notifications
You must be signed in to change notification settings - Fork 368
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
Rename licence -> license throughout codebase #2554
Conversation
$this->add_error( $product_slug, __( 'license is not active.', 'wp-job-manager' ) ); | ||
return; | ||
} | ||
$this->api->deactivate( | ||
[ | ||
'api_product_id' => $product_slug, | ||
'licence_key' => $licence['licence_key'], | ||
'email' => $licence['email'], | ||
'license_key' => $license['license_key'], |
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.
This is changed from the API's request
method.
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.
Code looks good! (This is a brave change 😨 🔥 )
I have left some comments and have reviewed the code in detail. I will do tests later.
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.
Working like a charm 🔥
@aaronfc Thanks for the review! I'll hold off merging until the parent PR is merged. |
Built off of #2552
While working on #2552, I realized we have a very brittle setup with the usage of
licence
vs (US)license
. This finally standardizes it to uselicense
and migrates the licenses appropriately. Our strings should previously all been updated, but this switches over the code/options.Changes proposed in this Pull Request
licence
tolicense
in code and options.Testing instructions
trunk
, activate licenses for products.Deprecated Code
WP_Job_Manager_Helper::has_licenced_products
->WP_Job_Manager_Helper::has_licensed_products
WP_Job_Manager_Helper::get_plugin_licence
->WP_Job_Manager_Helper::get_plugin_license
WP_Job_Manager_Helper::licence_output
->WP_Job_Manager_Helper::licence_output
WP_Job_Manager_Helper::activate_licence
->WP_Job_Manager_Helper::activate_license
WP_Job_Manager_Helper::deactivate_licence
->WP_Job_Manager_Helper::deactivate_license