$w3tc_value ) { // phpcs:ignore if ( substr( $w3tc_key, 0, 3 ) === 'oa_' ) { $path .= '&' . rawurlencode( $w3tc_key ) . '=' . rawurlencode( Util_Request::get_string( $w3tc_key ) ); } } /** * RT9-233: Forward the validated state into the popup URL * so the AuthReturn handler can re-validate independently * (defense in depth — popup URL is reachable by URL alone * and shouldn't trust the upstream Page-level check). */ $path .= '&' . Cdn_GoogleDrive_OAuthState::STATE_PARAM . '=' . rawurlencode( $submitted_state ); $popup_url = self_admin_url( $path ); wp_localize_script( 'w3tc_cdn_google_drive', 'w3tc_cdn_google_drive_popup_url', array( $popup_url ) ); } } /** * Displays the configuration settings for the Google Drive CDN integration in the W3 Total Cache settings page. * * This method loads the Google Drive CDN settings section in the W3 Total Cache settings page by including a * specific view file and passing configuration data. * * @return void */ public static function w3tc_settings_cdn_boxarea_configuration() { $w3tc_config = Dispatcher::config(); require W3TC_DIR . '/Cdn_GoogleDrive_Page_View.php'; } }