Skip to content

Commit

Permalink
Merge pull request #894 from Codeinwp/bugfix/872
Browse files Browse the repository at this point in the history
Fixed compatibility issue LearnPress plugin
  • Loading branch information
vytisbulkevicius authored Dec 13, 2023
2 parents c1216d2 + 0c93a82 commit e63e9a9
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 7 deletions.
3 changes: 0 additions & 3 deletions assets/js/build/dashboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -34669,9 +34669,6 @@ module.exports = {
}
return labels.status + ': ' + status_label_display;
},
status_is_error_display: function status_is_error_display() {
return this.status_is_error_display;
},
/**
* Check if we have accounts connected.
*
Expand Down
2 changes: 1 addition & 1 deletion assets/js/build/dashboard.min.js

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions includes/admin/class-rop-admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -382,6 +382,11 @@ public function enqueue_scripts() {
wp_localize_script( $this->plugin_name . '-' . $page, 'ropAuthAppData', $rop_auth_app_data );
wp_enqueue_script( $this->plugin_name . '-' . $page );

// Deregister the LMS vue-libs script for the ROP dashboard and exclude the page.
if ( function_exists( 'learn_press_get_current_version' ) && wp_script_is( $this->plugin_name . '-' . $page ) ) {
wp_deregister_script( 'vue-libs' );
}

}

/**
Expand Down
3 changes: 0 additions & 3 deletions vue/src/vue-elements/main-page-panel.vue
Original file line number Diff line number Diff line change
Expand Up @@ -180,9 +180,6 @@
}
return labels.status + ': ' + status_label_display;
},
status_is_error_display: function () {
return this.status_is_error_display;
},
/**
* Check if we have accounts connected.
*
Expand Down

0 comments on commit e63e9a9

Please sign in to comment.