make_protocol_relative_url( $src ); } /** * Transform Enqueued JavaScript URLs * * @access public * @return string * @since 1.0 */ public function script_loader_src( $src, $handle ) { return $this->make_protocol_relative_url( $src ); } /** * Transform Enqueued Theme Files * * @access public * @return string * @since 1.0 * @link http://codex.wordpress.org/Function_Reference/get_template_directory_uri */ public function template_directory_uri( $template_dir_uri, $template, $theme_root_uri ) { return $this->make_protocol_relative_url( $template_dir_uri ); } /** * Transform Enqueued Theme Files * * @access public * @return string * @since 1.0 * @link http://codex.wordpress.org/Function_Reference/get_stylesheet_directory_uri */ public function stylesheet_directory_uri( $stylesheet_dir_uri, $stylesheet, $theme_root_uri ) { return $this->make_protocol_relative_url( $stylesheet_dir_uri ); } } $foundationpress_protocol_relative_theme_assets = new Foundationpress_Protocol_Relative_Theme_Assets; endif;