Skip to content

Commit 2dc4125

Browse files
committed
Corrected admin settings Player Settings callback.
1 parent d37ea8c commit 2dc4125

1 file changed

Lines changed: 14 additions & 3 deletions

File tree

src/inc/class-cloudflare-stream-settings.php

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ public function action_admin_init() {
147147
add_settings_section(
148148
self::SETTING_SECTION_PLAYER,
149149
esc_html__( 'Player Settings', 'cloudflare-stream-wordpress' ),
150-
array( $this, 'settings_section_api_keys' ),
150+
array( $this, 'settings_section_player' ),
151151
self::SETTING_PAGE
152152
);
153153

@@ -232,8 +232,8 @@ public function media_domain_cb() {
232232
/** PLAYER SETTINGS CALLBACKS **/
233233

234234
/**
235-
* Callback for rendering the poster time field
236-
*/
235+
* Callback for rendering the poster time field
236+
*/
237237
public function poster_time_cb() {
238238
$poster_time = get_option( self::OPTION_POSTER_TIME );
239239
echo '<label for="cloudflare_stream_poster_time"><input type="number" class="regular-text" name="cloudflare_stream_poster_time" id="cloudflare_stream_poster_time" value="' . esc_attr( intval( $poster_time ) ) . '" autocomplete="off"> seconds</label>'
@@ -411,6 +411,17 @@ public function settings_section_api_keys() {
411411
echo '</p>';
412412
}
413413

414+
/**
415+
* Render Player Settings Section
416+
*
417+
* @since 1.9.4
418+
*/
419+
public function settings_section_player() {
420+
echo '<p>';
421+
echo esc_html__( 'Global settings for the player. Some of these can be overridden on a per video basis with shortcode arguments.', 'cloudflare-stream-wordpress' );
422+
echo '</p>';
423+
}
424+
414425
/**
415426
* Helper function for determining if the user has attempted to setup their API keys.
416427
*/

0 commit comments

Comments
 (0)