WordPress.org

Plugin Directory

Changeset 1367149


Ignore:
Timestamp:
03/09/16 01:24:38 (22 months ago)
Author:
woorockets
Message:

Fix bug upload media.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wr-pagebuilder/trunk/core/core.php

    r1363759 r1367149  
    123123        // print html template of shortcodes 
    124124        add_action( 'admin_footer', array( &$this, 'element_tpl' ) ); 
    125         add_filter( 'wp_handle_upload_prefilter', array( &$this, 'media_file_name' ), 100 ); 
    126125 
    127126        // add IGPB button to Wordpress TinyMCE 
     
    889888 
    890889    /** 
    891      * Get media file name 
    892      * 
    893      * @param array $file 
    894      * @return array 
    895      */ 
    896     function media_file_name( $file ) { 
    897         $file_name = iconv( 'utf-8', 'ascii//TRANSLIG//IGNORE', $file['name'] ); 
    898         if ( $file_name ) { 
    899             $file['name'] = $file_name; 
    900         } 
    901         return $file; 
    902     } 
    903  
    904     /** 
    905890     * Check condition to load WR PageBuilder content & assets. 
    906891     * 
Note: See TracChangeset for help on using the changeset viewer.