Skip to content

Commit b93006b

Browse files
committed
修改prettyprint在php7环境下报错的问题
1 parent e1c863d commit b93006b

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

apip.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* Description: Plugins used by pewae
88
* Author: lifishake
99
* Author URI: http://pewae.com
10-
* Version: 1.27.0
10+
* Version: 1.27.1
1111
* License: GNU General Public License 3.0+ http://www.gnu.org/licenses/gpl.html
1212
*/
1313

@@ -776,7 +776,7 @@ function apip_scripts()
776776
//8.1
777777
if ( (in_category('code_share') || has_tag('testcode')) && apip_option_check('apip_codehighlight_enable') == 1 )
778778
{
779-
add_filter('the_content', 'apip_code_highlight') ;
779+
//add_filter('the_content', 'apip_code_highlight') ;
780780
$css .= ' pre.prettyprint {
781781
display: block;
782782
background-color: #333;
@@ -830,7 +830,7 @@ function apip_scripts()
830830
li.L0, li.L1, li.L2, li.L3, li.L5, li.L6, li.L7, li.L8 {
831831
list-style-type: none;
832832
}';
833-
wp_enqueue_script('apip-js-prettify', APIP_PLUGIN_URL . 'js/apip-prettify.js', array(), false, true);
833+
wp_enqueue_script('apip-js-prettify', APIP_PLUGIN_URL . 'js/apip-prettify.js', array(), "20181208", true);
834834
}
835835
//8.2
836836
if ( apip_option_check('apip_lazyload_enable') ) {

js/apip-prettify.js

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)