WordPress.org

Plugin Directory

Changeset 378985


Ignore:
Timestamp:
04/29/11 21:27:44 (3 years ago)
Author:
leogermani
Message:

[fix] only loads js and css in the admin

File:
1 edited

Legend:

Unmodified
Added
Removed
  • multi-language-framework/trunk/multi-language-framework.php

    r371968 r378985  
    5959    //load_plugin_textdomain('mlf', false, dirname(plugin_basename( __FILE__ )).'/languages'); 
    6060     
    61     // register plugin javascript files 
    62     mlf_add_js(); 
    63      
    64     // register plugin css files 
    65     mlf_add_css(); 
    66      
     61    if (is_admin()) { 
     62        // register plugin javascript files 
     63        mlf_add_js(); 
     64         
     65        // register plugin css files 
     66        mlf_add_css(); 
     67    }     
    6768         
    6869    // remove traces of language (or better not?) 
     
    125126 
    126127function mlf_add_js() { 
    127  
    128128     
    129129    wp_enqueue_script('mlf-admin', MLF_PLUGIN_URL . 'js/settings.js');     
Note: See TracChangeset for help on using the changeset viewer.