Tag Archives: WordPress

Unknown class E_WARNING

After running the changed files for a few days, I found this in one of the Error Reporting plugin log files E_WARNING Unknown class passed as parameter at …../wp-includes/class-IXR.php (326) referring to a is_subclass_of line. My initial thought was that the unknown class was a non-existant class passed as the first argument. Realizing that this [...]

wp-includes general-template.php

Only one is_a here. function wp_admin_css( $file = 'wp-admin', $force_echo = false ) { ….. // if ( !is_a($wp_styles, 'WP_Styles') ) $class_name = 'WP_Styles'; if ( ( get_class($wp_styles) != $class_name ) && !is_subclass_of($wp_styles, $class_name) ) Technorati Tags: Errors, WordPress

wp-includes functions.wp-styles.php

While checking the is_a errors, I noticed an apparent typo in this file. function wp_style_is( $handle, $list = 'queue' ) { global $wp_styles; if ( !is_a($wp_styles, 'WP_Scripts') ) $wp_styles = new WP_Styles(); After pointing it out in the use instanceof instead of is_a() Trac Ticket, Denis-de-Bernardy opened another Trac Ticket, Incorrect check in wp_style_is(), and [...]

wp-includes functions.wp-scripts.php

This file contains 6 occurrences of is_a function wp_print_scripts( $handles = false ) { ….. // if ( !is_a($wp_scripts, 'WP_Scripts') ) { $class_name = 'WP_Scripts'; if ( ( get_class($wp_scripts) != $class_name ) && !is_subclass_of($wp_scripts, $class_name) ) { ….. function wp_register_script( $handle, $src, $deps = array(), $ver = false, $in_footer = false ) { function wp_localize_script( [...]

wp-includes class-simplepie.php

Although SimplePie version 1.1.3 has more problems besides the is_a errors, (hints: "by reference", "static"), this file contains 4 occurrences of is_a class SimplePie ….. function set_file(&$file) ….. // if (is_a($file, 'SimplePie_File')) $class_name = 'SimplePie_File'; if ( ( get_class($file) == $class_name ) || is_subclass_of($file, $class_name) ) ….. function init() ….. // if (is_a($this->file, 'SimplePie_File') && [...]