[wp-trac] [WordPress Trac] #51729: "Uncaught TypeError: is_file(): Argument #1 ($filename) must be of type string, array given" when using the 'mce_external_languages' filter

WordPress Trac noreply at wordpress.org
Sun Nov 8 17:33:01 UTC 2020


#51729: "Uncaught TypeError: is_file(): Argument #1 ($filename) must be of type
string, array given" when using the 'mce_external_languages' filter
--------------------------+------------------------------
 Reporter:  BackuPs       |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Editor        |     Version:  trunk
 Severity:  normal        |  Resolution:
 Keywords:  php8          |     Focuses:
--------------------------+------------------------------

Comment (by BackuPs):

 it happens when adding

 add_filter('mce_external_languages', array(&$this,
 'add_tinymce_languages'));

 But the hook requires a array of languages..

 https://developer.wordpress.org/reference/hooks/mce_external_languages/

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/51729#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list