修复jQuery加载
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
/*
|
/*
|
||||||
Plugin Name: 自动发布
|
Plugin Name: 自动发布
|
||||||
Version: 1.9
|
Version: 1.9.1
|
||||||
Plugin URL: http://xiaosong.org/share/auto-pub-plugin-update
|
Plugin URL: http://xiaosong.org/share/auto-pub-plugin-update
|
||||||
Description: 自动发布文章,修正时区问题,增加相关挂载点,自动删除缓存文件。
|
Description: 自动发布文章,修正时区问题,增加相关挂载点,自动删除缓存文件。
|
||||||
Author: 小松
|
Author: 小松
|
||||||
@@ -23,11 +23,11 @@ function dir_is_empty($dir){
|
|||||||
}
|
}
|
||||||
|
|
||||||
function autopub(){
|
function autopub(){
|
||||||
emLoadJQuery();
|
|
||||||
echo '<script type="text/javascript">$(function(){$.get("'.DYNAMIC_BLOGURL.'?plugin=autopub");})</script>'."\n";
|
echo '<script type="text/javascript">$(function(){$.get("'.DYNAMIC_BLOGURL.'?plugin=autopub");})</script>'."\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!dir_is_empty(AUTOPUB_CACHE_DIR)) {
|
if (!dir_is_empty(AUTOPUB_CACHE_DIR)) {
|
||||||
|
emLoadJQuery();
|
||||||
addAction('index_footer', 'autopub');
|
addAction('index_footer', 'autopub');
|
||||||
addAction('adm_footer', 'autopub');
|
addAction('adm_footer', 'autopub');
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user