Changeset 1755448
- Timestamp:
- 10/30/2017 06:51:10 PM (8 years ago)
- Location:
- site-announcements/trunk
- Files:
-
- 5 edited
-
README.txt (modified) (2 diffs)
-
admin/class-cw-site-announcements-admin.php (modified) (1 diff)
-
includes/class-cw-site-announcements.php (modified) (1 diff)
-
public/class-cw-site-announcements-public.php (modified) (2 diffs)
-
site-announcements.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
site-announcements/trunk/README.txt
r1702834 r1755448 4 4 Tags: announcements, news, users, messages 5 5 Requires at least: 4.0 6 Tested up to: 4.8 6 Tested up to: 4.8.2 7 7 Stable tag: trunk 8 8 License: GPLv2 or later … … 44 44 == Changelog == 45 45 46 = 1.0.2 = 47 * Prevent script enqueue if there are no announcements 48 * Removes erroneous admin output 49 46 50 = 1.0.1 = 47 51 * Update for plugin assets -
site-announcements/trunk/admin/class-cw-site-announcements-admin.php
r1702794 r1755448 111 111 if( '' == $a->closable ) { 112 112 $a->closable = true; 113 echo 'emty';114 113 $checked = true; 115 114 } else { 116 if( $a->closable == 1 ) {115 if( $a->closable == 1 ) { 117 116 $a->closable = true; 118 117 $checked = true; -
site-announcements/trunk/includes/class-cw-site-announcements.php
r1702794 r1755448 70 70 71 71 $this->plugin_name = 'cw-site-announcements'; 72 $this->version = '1.0. 0';72 $this->version = '1.0.2'; 73 73 74 74 $this->load_dependencies(); -
site-announcements/trunk/public/class-cw-site-announcements-public.php
r1702794 r1755448 182 182 183 183 wp_enqueue_script( $this->plugin_name . 'js-cookie', plugin_dir_url( __FILE__ ) . 'js/js.cookie.js', array(), $this->version, false ); 184 wp_enqueue_script( $this->plugin_name, plugin_dir_url( __FILE__ ) . 'js/cw-site-announcements-public.js', array( 'jquery', $this->plugin_name . 'js-cookie' ), $this->version, false );185 184 186 185 $a = $this->get_announcement(); … … 193 192 'closable_duration' => $a->closable_duration, 194 193 ); 194 wp_enqueue_script( $this->plugin_name, plugin_dir_url( __FILE__ ) . 'js/cw-site-announcements-public.js', array( 'jquery', $this->plugin_name . 'js-cookie' ), $this->version, false ); 195 195 wp_localize_script( $this->plugin_name, 'CW', $cw_data ); 196 196 } -
site-announcements/trunk/site-announcements.php
r1702834 r1755448 17 17 * Plugin URI: https://codewrangler.io 18 18 * Description: This is a short description of what the plugin does. It's displayed in the WordPress admin area. 19 * Version: 1.0. 119 * Version: 1.0.2 20 20 * Author: CodeWrangler, Inc. 21 21 * Author URI: https://codewrangler.io
Note: See TracChangeset
for help on using the changeset viewer.