Beta tester - fix lint errors (#48825)
* Fix lint errors * Add changefile(s) from automation for the following project(s): woocommerce-beta-tester --------- Co-authored-by: github-actions <github-actions@github.com>
This commit is contained in:
parent
97e5873b1b
commit
dfc40ff775
|
@ -17,11 +17,11 @@ defined( 'ABSPATH' ) || exit;
|
|||
function register_woocommerce_admin_test_helper_rest_route( $route, $callback, $additional_options = array() ) {
|
||||
add_action(
|
||||
'rest_api_init',
|
||||
function() use ( $route, $callback, $additional_options ) {
|
||||
function () use ( $route, $callback, $additional_options ) {
|
||||
$default_options = array(
|
||||
'methods' => 'POST',
|
||||
'callback' => $callback,
|
||||
'permission_callback' => function( $request ) {
|
||||
'permission_callback' => function ( $request ) {
|
||||
if ( ! wc_rest_check_manager_permissions( 'settings', 'edit' ) ) {
|
||||
return new \WP_Error(
|
||||
'woocommerce_rest_cannot_edit',
|
||||
|
@ -61,4 +61,4 @@ require 'live-branches/manifest.php';
|
|||
require 'live-branches/install.php';
|
||||
require 'tools/set-block-template-logging-threshold.php';
|
||||
require 'remote-spec-validator/class-wca-test-helper-remote-spec-validator.php';
|
||||
require 'remote-inbox-notifications/class-wca-test-helper-remote-inbox-notifications.php';
|
||||
require 'remote-inbox-notifications/class-wca-test-helper-remote-inbox-notifications.php';
|
||||
|
|
|
@ -122,7 +122,7 @@ class WC_Beta_Tester_Remote_Inbox_Notifications_Helper {
|
|||
*/
|
||||
public static function import( $specs ) {
|
||||
$stored_state = RemoteInboxNotificationsEngine::get_stored_state();
|
||||
$transient = static::get_transient();
|
||||
$transient = static::get_transient();
|
||||
|
||||
foreach ( $specs as $spec ) {
|
||||
SpecRunner::run_spec( $spec, $stored_state );
|
||||
|
|
|
@ -0,0 +1,4 @@
|
|||
Significance: patch
|
||||
Type: tweak
|
||||
Comment: This only contains lint fixes.
|
||||
|
Loading…
Reference in New Issue