Plugin Directory

Changeset 2686337


Ignore:
Timestamp:
03/01/2022 06:40:32 AM (4 years ago)
Author:
yuyaoit
Message:

v1.0.2 修复若干BUG

Location:
eyoung/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • eyoung/trunk/classes/admin.class.php

    r2685694 r2686337  
    299299            add_action('wp_ajax_eys_delChatAll',array(__CLASS__,'delChatAll'));
    300300            add_filter('plugin_action_links', array(__CLASS__, 'setQuickUrl'), 10, 2);
    301             wp_enqueue_style( 'eyservice_eyui_css', EYOUNG_SERVICERONLINE_URL.EYOUNG_SERVICERONLINE_JS.'/css/eyui.css');
    302             wp_enqueue_script('eyservice_eyui_js', EYOUNG_SERVICERONLINE_URL.EYOUNG_SERVICERONLINE_JS.'/eyui.js');
     301            add_action('admin_enqueue_scripts', array(__CLASS__,'setLoadScripts'));                     
    303302        }
    304303       
    305304        add_action('wp_ajax_eys_imageupload',array(__CLASS__,'setImageUpload'));
     305    }
     306   
     307    public static function setLoadScripts(){
     308        wp_enqueue_style( 'eyservice_eyui_admin_css', EYOUNG_SERVICERONLINE_URL.EYOUNG_SERVICERONLINE_JS.'/css/eyui.css');
     309        wp_enqueue_script('eyservice_eyui_js', EYOUNG_SERVICERONLINE_URL.EYOUNG_SERVICERONLINE_JS.'/eyui.js');     
    306310    }
    307311   
     
    497501            //通过页面别名来判断页面是否已经存在
    498502            if( strtolower( $page->post_name ) == strtolower( $slug ) ){
     503                return $page->ID;
    499504                $exists = true;
    500505            }
  • eyoung/trunk/classes/front.class.php

    r2685263 r2686337  
    479479   
    480480        $uinfo = self::getUserInfo();
    481 
    482         wp_enqueue_style( 'eyservice_eyui_css', EYOUNG_SERVICERONLINE_URL.EYOUNG_SERVICERONLINE_JS.'/css/eyui.css');
    483         wp_enqueue_style( 'eyservice_service_css', EYOUNG_SERVICERONLINE_URL.EYOUNG_SERVICERONLINE_JS.'/css/service.css');     
    484         wp_enqueue_script('eyservice_eyui_js', EYOUNG_SERVICERONLINE_URL.EYOUNG_SERVICERONLINE_JS.'/eyui.js'); 
    485481                       
    486482        add_action('wp_ajax_eys_setContent', array(__CLASS__, 'setAjx'));
     
    517513            add_filter('the_content', array(__CLASS__, 'cantEnterTips'));
    518514            add_action('wp_footer', array(__CLASS__, 'renderUserScript'));
    519         }       
     515        }
     516        add_action('wp_enqueue_scripts', array(__CLASS__,'setLoadScripts'), 11);       
     517    }
     518   
     519    public static function setLoadScripts(){
     520        wp_enqueue_style( 'eyservice_eyui_css', EYOUNG_SERVICERONLINE_URL.EYOUNG_SERVICERONLINE_JS.'/css/eyui.css');
     521        wp_enqueue_style( 'eyservice_service_css', EYOUNG_SERVICERONLINE_URL.EYOUNG_SERVICERONLINE_JS.'/css/service.css');     
     522        wp_enqueue_script('eyservice_eyui_js', EYOUNG_SERVICERONLINE_URL.EYOUNG_SERVICERONLINE_JS.'/eyui.js');         
    520523    }
    521524   
  • eyoung/trunk/readme.txt

    r2685763 r2686337  
    55Requires at least: 4.8
    66Tested up to: 5.9
    7 Stable tag: 1.0.1
     7Stable tag: 1.0.2
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
Note: See TracChangeset for help on using the changeset viewer.