Changeset 2486965
- Timestamp:
- 03/04/2021 03:47:43 PM (5 years ago)
- Location:
- smaily-for-wp
- Files:
-
- 6 edited
- 1 copied
-
tags/3.0.2 (copied) (copied from smaily-for-wp/trunk)
-
tags/3.0.2/admin/class-smaily-for-wp-admin.php (modified) (2 diffs)
-
tags/3.0.2/readme.txt (modified) (2 diffs)
-
tags/3.0.2/smaily-for-wp.php (modified) (2 diffs)
-
trunk/admin/class-smaily-for-wp-admin.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/smaily-for-wp.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
smaily-for-wp/tags/3.0.2/admin/class-smaily-for-wp-admin.php
r2486913 r2486965 57 57 public function enqueue_styles() { 58 58 wp_register_style( $this->plugin_name, SMLY4WP_PLUGIN_URL . '/admin/css/smaily-for-wp-admin.css', array(), $this->version, 'all' ); 59 // Only enqueue in module page. 60 $screen = get_current_screen(); 61 if ( isset( $screen->base ) && $screen->base === 'toplevel_page_' . $this->plugin_name ) { 62 wp_enqueue_style( $this->plugin_name ); 63 } 59 wp_enqueue_style( $this->plugin_name ); 64 60 } 65 61 … … 71 67 public function enqueue_scripts() { 72 68 wp_register_script( $this->plugin_name, SMLY4WP_PLUGIN_URL . '/admin/js/smaily-for-wp-admin.js', array( 'jquery' ), $this->version, false ); 73 // Only enqueue in module page. 74 $screen = get_current_screen(); 75 if ( isset( $screen->base ) && $screen->base === 'toplevel_page_' . $this->plugin_name ) { 76 wp_enqueue_script( $this->plugin_name ); 77 wp_localize_script( $this->plugin_name, 'smaily_for_wp', array( 'ajax_url' => admin_url( 'admin-ajax.php' ) ) ); 78 } 69 wp_enqueue_script( $this->plugin_name ); 70 wp_localize_script( $this->plugin_name, 'smaily_for_wp', array( 'ajax_url' => admin_url( 'admin-ajax.php' ) ) ); 79 71 } 80 72 -
smaily-for-wp/tags/3.0.2/readme.txt
r2486913 r2486965 4 4 Requires PHP: 5.6 5 5 Requires at least: 4.0 6 Stable tag: 3.0. 16 Stable tag: 3.0.2 7 7 Tags: widget, plugin, sidebar, api, mail, email, marketing, smaily 8 8 Tested up to: 5.6.0 … … 76 76 == Changelog == 77 77 78 = 3.0.2 = 79 - Remove unnecessary admin page static content filtering 80 78 81 = 3.0.1 = 79 82 - Fix hardcoded development plugin name breaks production CSS and JS loading -
smaily-for-wp/tags/3.0.2/smaily-for-wp.php
r2486913 r2486965 10 10 * Text Domain: smaily-for-wp 11 11 * Description: Smaily newsletter subscription form. 12 * Version: 3.0. 112 * Version: 3.0.2 13 13 * Author: Sendsmaily LLC 14 14 * Author URI: https://smaily.com … … 25 25 * Current plugin version. 26 26 */ 27 define( 'SMLY4WP_PLUGIN_VERSION', '3.0. 1' );27 define( 'SMLY4WP_PLUGIN_VERSION', '3.0.2' ); 28 28 29 29 /** -
smaily-for-wp/trunk/admin/class-smaily-for-wp-admin.php
r2486913 r2486965 57 57 public function enqueue_styles() { 58 58 wp_register_style( $this->plugin_name, SMLY4WP_PLUGIN_URL . '/admin/css/smaily-for-wp-admin.css', array(), $this->version, 'all' ); 59 // Only enqueue in module page. 60 $screen = get_current_screen(); 61 if ( isset( $screen->base ) && $screen->base === 'toplevel_page_' . $this->plugin_name ) { 62 wp_enqueue_style( $this->plugin_name ); 63 } 59 wp_enqueue_style( $this->plugin_name ); 64 60 } 65 61 … … 71 67 public function enqueue_scripts() { 72 68 wp_register_script( $this->plugin_name, SMLY4WP_PLUGIN_URL . '/admin/js/smaily-for-wp-admin.js', array( 'jquery' ), $this->version, false ); 73 // Only enqueue in module page. 74 $screen = get_current_screen(); 75 if ( isset( $screen->base ) && $screen->base === 'toplevel_page_' . $this->plugin_name ) { 76 wp_enqueue_script( $this->plugin_name ); 77 wp_localize_script( $this->plugin_name, 'smaily_for_wp', array( 'ajax_url' => admin_url( 'admin-ajax.php' ) ) ); 78 } 69 wp_enqueue_script( $this->plugin_name ); 70 wp_localize_script( $this->plugin_name, 'smaily_for_wp', array( 'ajax_url' => admin_url( 'admin-ajax.php' ) ) ); 79 71 } 80 72 -
smaily-for-wp/trunk/readme.txt
r2486913 r2486965 4 4 Requires PHP: 5.6 5 5 Requires at least: 4.0 6 Stable tag: 3.0. 16 Stable tag: 3.0.2 7 7 Tags: widget, plugin, sidebar, api, mail, email, marketing, smaily 8 8 Tested up to: 5.6.0 … … 76 76 == Changelog == 77 77 78 = 3.0.2 = 79 - Remove unnecessary admin page static content filtering 80 78 81 = 3.0.1 = 79 82 - Fix hardcoded development plugin name breaks production CSS and JS loading -
smaily-for-wp/trunk/smaily-for-wp.php
r2486913 r2486965 10 10 * Text Domain: smaily-for-wp 11 11 * Description: Smaily newsletter subscription form. 12 * Version: 3.0. 112 * Version: 3.0.2 13 13 * Author: Sendsmaily LLC 14 14 * Author URI: https://smaily.com … … 25 25 * Current plugin version. 26 26 */ 27 define( 'SMLY4WP_PLUGIN_VERSION', '3.0. 1' );27 define( 'SMLY4WP_PLUGIN_VERSION', '3.0.2' ); 28 28 29 29 /**
Note: See TracChangeset
for help on using the changeset viewer.