Update from 3.0.4.1 to 3.1.2
-
First of all:
OMG! What a change! What a chaaange!
I was using a modified version of login-with-ajax, with files based in my template. widget_out.php and widget.css and after the jquery update, a modified version of login-with-ajax.js that was using migration.
I updated, and buf! Fatal Error ?? Cause of the old widget_out.php.
Also, I would like to be able to include only widget.css, to do that, I see that i also need login-with-ajax.js in my theme.
Can you change the function
public static function locate_template_url($template_path)
from
if( file_exists(get_stylesheet_directory().'/plugins/login-with-ajax/login-with-ajax.js') ){ //Child Theme (or just theme) return trailingslashit(get_stylesheet_directory_uri())."plugins/login-with-ajax/$template_path"; }else if( file_exists(get_template_directory().'/plugins/login-with-ajax/login-with-ajax.js') ){ //Parent Theme (if parent exists) return trailingslashit(get_template_directory_uri())."plugins/login-with-ajax/$template_path"; }
to
if( file_exists(get_stylesheet_directory().'/plugins/login-with-ajax/'.$template_path) ){ //Child Theme (or just theme) return trailingslashit(get_stylesheet_directory_uri())."plugins/login-with-ajax/$template_path"; }else if( file_exists(get_template_directory().'/plugins/login-with-ajax/login-with-ajax.js'.$template_path) ){ //Parent Theme (if parent exists) return trailingslashit(get_template_directory_uri())."plugins/login-with-ajax/$template_path"; }
Thanks!
Viewing 9 replies - 1 through 9 (of 9 total)
Viewing 9 replies - 1 through 9 (of 9 total)
- The topic ‘Update from 3.0.4.1 to 3.1.2’ is closed to new replies.