Plugin Directory

Changeset 809391


Ignore:
Timestamp:
11/23/2013 08:11:45 PM (12 years ago)
Author:
wpsmart
Message:

jquery dependency bug fix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wpsmart-mobile/trunk/wpsmart.php

    r807301 r809391  
    277277{
    278278
    279     wp_register_script( 'wps-scripts', wps_get_base_theme_uri() . '/base-js/scripts.js?t=' . time() );
    280     wp_register_script( 'wps-base', wps_get_base_theme_uri() . '/base-js/base.js?t=' . time() );
     279    wp_register_script( 'wps-scripts', wps_get_base_theme_uri() . '/base-js/scripts.js?t=' . time(), array( 'jquery' ) );
     280    wp_register_script( 'wps-base', wps_get_base_theme_uri() . '/base-js/base.js?t=' . time(), array( 'jquery' ) );
    281281   
    282282    wp_enqueue_script( 'jquery' ); 
    283283    wp_enqueue_script( 'comment-reply' );   
    284     wp_enqueue_script( 'wps-scripts', null, array( 'jquery' ) );
    285     wp_enqueue_script( 'wps-base', null, array( 'jquery' ) );
     284    wp_enqueue_script( 'wps-scripts' );
     285    wp_enqueue_script( 'wps-base' );
    286286   
    287287    wp_register_style( 'base-style', wps_get_base_theme_uri() . '/base-css/base.css?t=' . time() );
     
    652652        <ins class="adsbygoogle"
    653653             style="display:inline-block;width:320px;height:50px"
    654              data-ad-client="<?php echo $client_id ?>"
    655              data-ad-slot="2025795687"></ins>
     654             data-ad-client="<?php echo $client_id ?>"></ins>
    656655        <script>
    657656        (adsbygoogle = window.adsbygoogle || []).push({});
Note: See TracChangeset for help on using the changeset viewer.