Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the wordpress-seo domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /www/wwwroot/qq.wanuse.com/wp-includes/functions.php on line 6114

Notice: 函数 _load_textdomain_just_in_time 的调用方法不正确bravada 域的翻译加载触发过早。这通常表示插件或主题中的某些代码运行过早。翻译应在 init 操作或之后加载。 请查阅调试 WordPress来获取更多信息。 (这个消息是在 6.7.0 版本添加的。) in /www/wwwroot/qq.wanuse.com/wp-includes/functions.php on line 6114
开启https后不能启用WordPress代码高亮插件SyntaxHighlighter修复记录 - DDD网络科技
使用互联网记录分享(Wide Area Network use :更好地使用互联网。)
开启https后不能启用WordPress代码高亮插件SyntaxHighlighter修复记录

开启https后不能启用WordPress代码高亮插件SyntaxHighlighter修复记录

启https后不能启用WordPress代码高亮插件SyntaxHighlighter修复记录

使用文件编辑器 修改编辑syntaxhighlighter/syntaxhighlighter.php大概是999行

下面是修改后的源文件

if ( $needcore && ! empty( $wp_styles ) && ! empty( $wp_styles->registered ) && ! empty( $wp_styles->registered['syntaxhighlighter-core'] ) && ! empty( $wp_styles->registered['syntaxhighlighter-core']->src ) ) :
			$corecssurl = add_query_arg( 'ver', $this->agshver, $wp_styles->registered['syntaxhighlighter-core']->src );
			$corecssurl = apply_filters( 'syntaxhighlighter_csscoreurl', $corecssurl );
			$corecssurl = str_replace("http","https","$corecssurl");
?>
		var corecssurl = "<?php echo esc_js( $corecssurl ); ?>";
			if ( corecss.setAttribute ) {
				corecss.setAttribute( "rel", "stylesheet" );
				corecss.setAttribute( "type", "text/css" );
				corecss.setAttribute( "href", corecssurl );
		} else {
				corecss.rel = "stylesheet";
				corecss.href = corecssurl;
		}
		document.head.appendChild( corecss );
<?php
		endif; // Endif $needcore

if ( 'none' != $this->settings['theme'] ) : ?>
<?php
themecssurl = esc_js( apply_filters( 'syntaxhighlighter_cssthemeurl', add_query_arg( 'ver', $this->agshver, $wp_styles->registered[ $theme ]->src ) ) );
$themecssurl = str_replace("http","https","$themecssurl");	?>
var themecssurl ="<?php echo "$themecssurl"; ?>";

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注