【生意多】-免费发布分类信息
当前位置: 首页 » 新闻 » 网络营销 » 正文

WordPress代码高亮插件 支持PHP7.4 WP5.8.1

放大字体  缩小字体 发布日期:2022-07-13 23:23:42    浏览次数:7

cript>WordPress代码高亮插件 支持PHP7.4 WP5.8.1cript>WordPress代码高亮插件 支持PHP7.4 WP5.8.1

默认样式

// Redirect to HTTPS login if forced to use SSL.if ( force_ssl_admin() && ! is_ssl() ) {    if ( 0 === strpos( $_SERVER['REQUEST_URI'], 'http' ) ) {        wp_safe_redirect( set_url_scheme( $_SERVER['REQUEST_URI'], 'https' ) );        exit;    } else {        wp_safe_redirect( 'https://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'] );        exit;    }}

Enlighter

// Redirect to HTTPS login if forced to use SSL.if ( force_ssl_admin() && ! is_ssl() ) {if ( 0 === strpos( $_SERVER['REQUEST_URI'], 'http' ) ) {wp_safe_redirect( set_url_scheme( $_SERVER['REQUEST_URI'], 'https' ) );exit;} else {wp_safe_redirect( 'https://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'] );exit;}}

Godzilla

// Redirect to HTTPS login if forced to use SSL.if ( force_ssl_admin() && ! is_ssl() ) {    if ( 0 === strpos( $_SERVER['REQUEST_URI'], 'http' ) ) {        wp_safe_redirect( set_url_scheme( $_SERVER['REQUEST_URI'], 'https' ) );        exit;    } else {        wp_safe_redirect( 'https://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'] );        exit;    }}

Beyond

// Redirect to HTTPS login if forced to use SSL.if ( force_ssl_admin() && ! is_ssl() ) {    if ( 0 === strpos( $_SERVER['REQUEST_URI'], 'http' ) ) {        wp_safe_redirect( set_url_scheme( $_SERVER['REQUEST_URI'], 'https' ) );        exit;    } else {        wp_safe_redirect( 'https://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'] );        exit;    }}

Classic

// Redirect to HTTPS login if forced to use SSL.if ( force_ssl_admin() && ! is_ssl() ) {    if ( 0 === strpos( $_SERVER['REQUEST_URI'], 'http' ) ) {        wp_safe_redirect( set_url_scheme( $_SERVER['REQUEST_URI'], 'https' ) );        exit;    } else {        wp_safe_redirect( 'https://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'] );        exit;    }}

MowTwo

// Redirect to HTTPS login if forced to use SSL.if ( force_ssl_admin() && ! is_ssl() ) {    if ( 0 === strpos( $_SERVER['REQUEST_URI'], 'http' ) ) {        wp_safe_redirect( set_url_scheme( $_SERVER['REQUEST_URI'], 'https' ) );        exit;    } else {        wp_safe_redirect( 'https://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'] );        exit;    }}

Eclipse

// Redirect to HTTPS login if forced to use SSL.if ( force_ssl_admin() && ! is_ssl() ) {    if ( 0 === strpos( $_SERVER['REQUEST_URI'], 'http' ) ) {        wp_safe_redirect( set_url_scheme( $_SERVER['REQUEST_URI'], 'https' ) );        exit;    } else {        wp_safe_redirect( 'https://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'] );        exit;    }}

Droide

// Redirect to HTTPS login if forced to use SSL.if ( force_ssl_admin() && ! is_ssl() ) {    if ( 0 === strpos( $_SERVER['REQUEST_URI'], 'http' ) ) {        wp_safe_redirect( set_url_scheme( $_SERVER['REQUEST_URI'], 'https' ) );        exit;    } else {        wp_safe_redirect( 'https://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'] );        exit;    }}

Minimal

// Redirect to HTTPS login if forced to use SSL.if ( force_ssl_admin() && ! is_ssl() ) {    if ( 0 === strpos( $_SERVER['REQUEST_URI'], 'http' ) ) {        wp_safe_redirect( set_url_scheme( $_SERVER['REQUEST_URI'], 'https' ) );        exit;    } else {        wp_safe_redirect( 'https://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'] );        exit;    }}

Atomic

// Redirect to HTTPS login if forced to use SSL.if ( force_ssl_admin() && ! is_ssl() ) {    if ( 0 === strpos( $_SERVER['REQUEST_URI'], 'http' ) ) {        wp_safe_redirect( set_url_scheme( $_SERVER['REQUEST_URI'], 'https' ) );        exit;    } else {        wp_safe_redirect( 'https://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'] );        exit;    }}

Rowhammer

// Redirect to HTTPS login if forced to use SSL.if ( force_ssl_admin() && ! is_ssl() ) {    if ( 0 === strpos( $_SERVER['REQUEST_URI'], 'http' ) ) {        wp_safe_redirect( set_url_scheme( $_SERVER['REQUEST_URI'], 'https' ) );        exit;    } else {        wp_safe_redirect( 'https://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'] );        exit;    }}

Bootstrap4

// Redirect to HTTPS login if forced to use SSL.if ( force_ssl_admin() && ! is_ssl() ) {    if ( 0 === strpos( $_SERVER['REQUEST_URI'], 'http' ) ) {        wp_safe_redirect( set_url_scheme( $_SERVER['REQUEST_URI'], 'https' ) );        exit;    } else {        wp_safe_redirect( 'https://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'] );        exit;    }}

Dracula

// Redirect to HTTPS login if forced to use SSL.if ( force_ssl_admin() && ! is_ssl() ) {    if ( 0 === strpos( $_SERVER['REQUEST_URI'], 'http' ) ) {        wp_safe_redirect( set_url_scheme( $_SERVER['REQUEST_URI'], 'https' ) );        exit;    } else {        wp_safe_redirect( 'https://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'] );        exit;    }}

Monokai

// Redirect to HTTPS login if forced to use SSL.if ( force_ssl_admin() && ! is_ssl() ) {    if ( 0 === strpos( $_SERVER['REQUEST_URI'], 'http' ) ) {        wp_safe_redirect( set_url_scheme( $_SERVER['REQUEST_URI'], 'https' ) );        exit;    } else {        wp_safe_redirect( 'https://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'] );        exit;    }}
 
(文/小编)
打赏
免责声明
• 
本文为小编原创作品,作者: 小编。欢迎转载,转载请注明原文出处:http://www.31duo.com/news/show-3786912.html 。本文仅代表作者个人观点,本站未对其内容进行核实,请读者仅做参考,如若文中涉及有违公德、触犯法律的内容,一经发现,立即删除,作者需自行承担相应责任。涉及到版权或其他问题,请及时联系我们。
 

(c)2016-2019 31DUO.COM All Rights Reserved浙ICP备19001410号-4

浙ICP备19001410号-4