Changeset 3104086
- Timestamp:
- 06/18/2024 12:44:25 PM (22 months ago)
- Location:
- stockpack/trunk
- Files:
-
- 3 edited
-
readme.txt (modified) (2 diffs)
-
src/class-stockpackmedia.php (modified) (2 diffs)
-
stockpack.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
stockpack/trunk/readme.txt
r3100134 r3104086 4 4 Requires at least: 4.6 5 5 Tested up to: 6.5.4 6 Stable tag: 3. 3.96 Stable tag: 3.4.0 7 7 License: GPL 8 8 License URI: https://www.gnu.org/licenses/gpl-3.0.en.html … … 134 134 == Changelog == 135 135 136 = 3.4.0 = 137 Removed enqueue of scripts and styles from admin pages that do not load the media scripts 138 136 139 = 3.3.9 = 137 140 Removed extra loaded scripts and wp query from admin settings thanks to @mathieu discovering it here https://wordpress.org/support/topic/is-there-an-utility-for-admin_enqueue_scripts-in-class-settings-api-php/#post-17809387 -
stockpack/trunk/src/class-stockpackmedia.php
r2815781 r3104086 62 62 */ 63 63 public function enqueue( $admin = true, $no_dialog = false ) { 64 $this->enqueue_script( $admin ); 65 $this->enqueue_style( $no_dialog ); 64 global $pagenow; 65 if(did_action('wp_enqueue_media') || (isset($_GET['page']) && $_GET['page'] === 'stockpack')) { 66 $this->enqueue_scripts($admin); 67 $this->enqueue_styles($no_dialog); 68 } 66 69 $this->enqueue_settings( $admin ); 67 70 } 68 71 69 public function enqueue_script ( $admin ) {72 public function enqueue_scripts( $admin ) { 70 73 $name = 'stockpack-load-admin.js'; 71 74 $script = 'stockpack'; … … 110 113 } 111 114 112 public function enqueue_style ( $no_dialog ) {115 public function enqueue_styles( $no_dialog ) { 113 116 global $wp_version; 114 117 -
stockpack/trunk/stockpack.php
r3100134 r3104086 6 6 * Author: Derikon Development 7 7 * Author URI: https://derikon.com/ 8 * Version: 3. 3.98 * Version: 3.4.0 9 9 * Text Domain: stockpack 10 10 * Domain Path: /languages … … 136 136 function stockpack_register_plugin() { 137 137 $load_stockpack = true; 138 if ( ! is_admin() ) {138 if ( ! is_admin()) { 139 139 $load_stockpack = false; 140 140 }
Note: See TracChangeset
for help on using the changeset viewer.