Skip to content
This repository has been archived by the owner on Oct 30, 2024. It is now read-only.

Commit

Permalink
Remove unneeded code
Browse files Browse the repository at this point in the history
  • Loading branch information
zedzedzed committed Feb 21, 2024
1 parent 22c36b4 commit 7ed3833
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions includes/class-toc-plus.php
Original file line number Diff line number Diff line change
Expand Up @@ -441,12 +441,6 @@ public function shortcode_sitemap_posts( $attributes ) {
* Register CSS and javascript files for frontend.
*/
public function wp_enqueue_scripts() {
// Do not output CSS / JS if the TOC is not going to be displayed on the current page
if ( ! $this->is_eligible() ) {
return;
}

// register our CSS and scripts
wp_register_style( 'toc-screen', TOC_PLUGIN_PATH . '/screen.min.css', [], TOC_VERSION );
wp_register_script( 'toc-front', TOC_PLUGIN_PATH . '/front.min.js', [ 'jquery' ], TOC_VERSION, true );
}
Expand Down

0 comments on commit 7ed3833

Please sign in to comment.