Guest User

Untitled

a guest
Nov 20th, 2017
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. @@ -523,8 +524,13 @@
  2. private function get_local_version() {
  3. if ( $this->is_theme() ) {
  4. $theme_data = wp_get_theme();
  5. -
  6. - return $theme_data->Version;
  7. + if( $theme_data->parent() ){
  8. + $parent_theme_data = wp_get_theme( $theme_data->Template );
  9. + return $parent_theme_data->Version;
  10. + }
  11. + else{
  12. + return $theme_data->Version;
  13. + }
  14. } else {
  15. $plugin_data = get_plugin_data( $this->plugin_file, false );
Add Comment
Please, Sign In to add comment