Plugin Directory

Changeset 1703729


Ignore:
Timestamp:
07/27/2017 11:51:48 AM (9 years ago)
Author:
rajilesh
Message:

fixed wp debug minor issues

Location:
optiontree-metabox-ui/trunk
Files:
229 added
3 edited

Legend:

Unmodified
Added
Removed
  • optiontree-metabox-ui/trunk/includes/rj-ot-widget-meta-box-api.php

    r1588162 r1703729  
    7272        $widget_datas = var_export($widget_data, true);
    7373       
    74        
     74        $widget_description = (isset($widget_data["description"])) ? $widget_data["description"] : '';
     75        $widget_title = (isset($widget_data["title"])) ? $widget_data["title"] : '';
    7576       $dynamic_class = '
    7677       if(!class_exists("' . $widget_class_name . '")){
     
    8182               
    8283                    $widget_ops = array("classname" => "' . $widget_class_name . '"
    83                                         , "description" => "' . $widget_data["description"] . '" );
     84                                        , "description" => "' . $widget_description . '" );
    8485                     
    85                     parent::__construct( "' . $widget_class_name . '", "' . $widget_data["title"] . '", $widget_ops );       
     86                    parent::__construct( "' . $widget_class_name . '", "' . $widget_title . '", $widget_ops );       
    8687                }
    8788
  • optiontree-metabox-ui/trunk/index.php

    r1688312 r1703729  
    1212Author: Rajilesh Panoli
    1313
    14 Version: 7.161
     14Version: 7.162
    1515
    1616Contributors: rajilesh
     
    107107function rj_ot_admin_scriptss(){
    108108  global $pagenow;
    109    
    110    
    111    
    112109    /* execute scripts before actions */
    113110    do_action( 'ot_admin_scripts_before' );
    114    
    115111    if ( function_exists( 'wp_enqueue_media' )  &&  did_action( 'wp_enqueue_media' )==false) {
    116112      /* WP 3.5 Media Uploader */
     113     
     114      if($_SERVER['SCRIPT_NAME']=='/wp-admin/profile.php' || $_SERVER['SCRIPT_NAME']=='/wp-admin/user-edit.php' || $_SERVER['SCRIPT_NAME']=='/wp-admin/edit-tags.php'){
     115       
    117116      wp_enqueue_media();
     117      }
    118118    } else {
    119119      /* Legacy Thickbox */
     
    14921492
    14931493     
    1494 
     1494$meta_option_pages = (isset($meta_option['pages'])) ? $meta_option['pages'] : '';
    14951495      $new_meta_box[$mi] = array(
    14961496
     
    15011501    'desc'        => '',
    15021502
    1503     'pages'       => $meta_option['pages'],
     1503    'pages'       => $meta_option_pages,
    15041504
    15051505    'context'     => 'normal',
  • optiontree-metabox-ui/trunk/readme.txt

    r1688313 r1703729  
    1111Tested up to: 4.7
    1212
    13 Stable tag: 7.161
     13Stable tag: 7.162
    1414
    1515License: GPLv2 or later
Note: See TracChangeset for help on using the changeset viewer.