Updating to 3.5
-
Hello,
When updating my site to 3.5 I received this error that read :
Fatal error: Call to a member function register_handler() on a non-object in *Path to web address and line*
I navigated to my media.php folder where the problem was called out and the error derived from this line:
$wp_embed->register_handler( $id, $regex, $callback, $priority );
My site was not able to be viewed when it was active. I commented it out until I can determine how to fix it. Is there an error in syntax that I can correct? I will post the full string below. Any help is appreciated. Media.php Lines 936-944
(Inside wp-includes)
**
* Register an embed handler. This function should probably only be used for sites that do not support oEmbed.
*
* @since 2.9.0
* @see WP_Embed::register_handler()
*/
function wp_embed_register_handler( $id, $regex, $callback, $priority = 10 ) {
global $wp_embed;
//$wp_embed->register_handler( $id, $regex, $callback, $priority );
}
- The topic ‘Updating to 3.5’ is closed to new replies.