From 2dc41258fbe2b8f28e33316a0ebec274df9d83cd Mon Sep 17 00:00:00 2001
From: B-Interactive
Date: Fri, 9 Jun 2023 15:38:56 +1000
Subject: [PATCH] Corrected admin settings Player Settings callback.
---
src/inc/class-cloudflare-stream-settings.php | 17 ++++++++++++++---
1 file changed, 14 insertions(+), 3 deletions(-)
diff --git a/src/inc/class-cloudflare-stream-settings.php b/src/inc/class-cloudflare-stream-settings.php
index fadd9f4..5d8b020 100644
--- a/src/inc/class-cloudflare-stream-settings.php
+++ b/src/inc/class-cloudflare-stream-settings.php
@@ -147,7 +147,7 @@ public function action_admin_init() {
add_settings_section(
self::SETTING_SECTION_PLAYER,
esc_html__( 'Player Settings', 'cloudflare-stream-wordpress' ),
- array( $this, 'settings_section_api_keys' ),
+ array( $this, 'settings_section_player' ),
self::SETTING_PAGE
);
@@ -232,8 +232,8 @@ public function media_domain_cb() {
/** PLAYER SETTINGS CALLBACKS **/
/**
- * Callback for rendering the poster time field
- */
+ * Callback for rendering the poster time field
+ */
public function poster_time_cb() {
$poster_time = get_option( self::OPTION_POSTER_TIME );
echo ''
@@ -411,6 +411,17 @@ public function settings_section_api_keys() {
echo '
';
}
+ /**
+ * Render Player Settings Section
+ *
+ * @since 1.9.4
+ */
+ public function settings_section_player() {
+ echo '
';
+ 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' );
+ echo '
';
+ }
+
/**
* Helper function for determining if the user has attempted to setup their API keys.
*/