Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion modules/simple-payments/simple-payments.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,9 @@ private function register_shortcode() {
public function init_hook_action() {
add_filter( 'rest_api_allowed_post_types', array( $this, 'allow_rest_api_types' ) );
add_filter( 'jetpack_sync_post_meta_whitelist', array( $this, 'allow_sync_post_meta' ) );
$this->register_scripts_and_styles();
if ( ! is_admin() ) {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These scripts are not useful even if we're on wp-admin without Gutenberg? I.e. classic editor won't be missing them?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The classic editor doesn't need them. These are just for the frontend to wire the actual pay button.

$this->register_scripts_and_styles();
}
$this->register_shortcode();
$this->setup_cpts();

Expand Down