From 49f29219a905e5cc3fb692e3b37b3da264ee8232 Mon Sep 17 00:00:00 2001 From: Johannes Kinast Date: Wed, 22 Apr 2020 15:15:54 +0200 Subject: [PATCH] Removed more trailing commas --- admin/settings-page-network.php | 2 +- admin/settings-page.php | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/admin/settings-page-network.php b/admin/settings-page-network.php index bc4dcf9..17998a1 100644 --- a/admin/settings-page-network.php +++ b/admin/settings-page-network.php @@ -63,7 +63,7 @@ public function save_setttings() { 'page' => $this->page, 'updated' => true ], - network_admin_url( 'settings.php' ), + network_admin_url( 'settings.php' ) ) ); exit; diff --git a/admin/settings-page.php b/admin/settings-page.php index ea34f1b..cfa6162 100644 --- a/admin/settings-page.php +++ b/admin/settings-page.php @@ -22,7 +22,7 @@ public function add_plugin_page() { 'Affiliate Marker', // menu_title 'manage_options', // capability $this->page, // menu_slug - [ $this, 'create_admin_page' ], // callback + [ $this, 'create_admin_page' ] // callback ); } @@ -74,7 +74,7 @@ protected function register_setting_disclosure() { 'sanitize_callback' => [ $this, 'sanitize_disclosure' ], 'show_in_rest' => true, 'default' => __( '* What the star implies: Links marked with a * mean that we will receive a commission if a booking or a specific action is made via the linked provider. There will be no additional costs for you. Also, we won\'t receive any money just by setting links.', 'affiliate-marker' ), - ], + ] ); add_settings_field( @@ -86,7 +86,7 @@ protected function register_setting_disclosure() { [ 'label_for' => Links::$options_name_disclosure, 'class' => 'large-text', - ], + ] ); } @@ -100,7 +100,7 @@ protected function register_setting_domains() { 'description' => 'List of affiliate domains', 'sanitize_callback' => [ $this, 'sanitize_domains' ], 'default' => \Affiliate_Marker\Links::$domains, - ], + ] ); add_settings_field( @@ -112,7 +112,7 @@ protected function register_setting_domains() { [ 'label_for' => Links::$options_name_domains, 'class' => 'large-text', - ], + ] ); } @@ -154,7 +154,7 @@ public function domains_callback( $args ) { '', $args['class'] ?? '', $args['label_for'] ?? '', - implode( PHP_EOL, $domains ), + implode( PHP_EOL, $domains ) ); }