Skip to content

Commit

Permalink
Removed more trailing commas
Browse files Browse the repository at this point in the history
  • Loading branch information
goaround committed Apr 22, 2020
1 parent 2faf2bc commit 49f2921
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion admin/settings-page-network.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public function save_setttings() {
'page' => $this->page,
'updated' => true
],
network_admin_url( 'settings.php' ),
network_admin_url( 'settings.php' )
) );

exit;
Expand Down
12 changes: 6 additions & 6 deletions admin/settings-page.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
);

}
Expand Down Expand Up @@ -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(
Expand All @@ -86,7 +86,7 @@ protected function register_setting_disclosure() {
[
'label_for' => Links::$options_name_disclosure,
'class' => 'large-text',
],
]
);

}
Expand All @@ -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(
Expand All @@ -112,7 +112,7 @@ protected function register_setting_domains() {
[
'label_for' => Links::$options_name_domains,
'class' => 'large-text',
],
]
);

}
Expand Down Expand Up @@ -154,7 +154,7 @@ public function domains_callback( $args ) {
'<textarea class="%s" rows="30" name="%s" id="affiliate_marker_domains">%s</textarea>',
$args['class'] ?? '',
$args['label_for'] ?? '',
implode( PHP_EOL, $domains ),
implode( PHP_EOL, $domains )
);
}

Expand Down

0 comments on commit 49f2921

Please sign in to comment.