WP Dashboard Notes - Version 1.0.9

Version Description

  • 05/12/2017 =

  • Improvement - Make sure scripts are only loaded on the dashboard, not on any other page. Why wasn't this included before?!

Download this release

Release Info

Developer sormano
Plugin Icon 128x128 WP Dashboard Notes
Version 1.0.9
Comparing to
See all releases

Code changes from version 1.0.8.1 to 1.0.9

includes/class-wpdn-ajax.php CHANGED
@@ -64,6 +64,10 @@ class WPDN_Ajax {
64
  'type' => 1,
65
  'checked' => 1,
66
  );
 
 
 
 
67
 
68
  $post = array(
69
  'ID' => $post_id,
@@ -190,10 +194,10 @@ class WPDN_Ajax {
190
 
191
  <div class='inside'>
192
 
193
- <style>
194
- #note_<?php echo $post_id; ?> { background-color: <?php echo $note_meta['color']; ?>; }
195
- #note_<?php echo $post_id; ?> .hndle { border: none; }
196
- </style>
197
 
198
  <?php if ( 'regular' == $note_meta['note_type'] ) :
199
  require plugin_dir_path( __FILE__ ) . 'templates/note.php';
64
  'type' => 1,
65
  'checked' => 1,
66
  );
67
+ $allowed_html_tags['span'] = array(
68
+ 'contenteditable' => 1,
69
+ 'class' => 1,
70
+ );
71
 
72
  $post = array(
73
  'ID' => $post_id,
194
 
195
  <div class='inside'>
196
 
197
+ <style>
198
+ #note_<?php echo $post_id; ?> { background-color: <?php echo $note_meta['color']; ?>; }
199
+ #note_<?php echo $post_id; ?> .hndle { border: none; }
200
+ </style>
201
 
202
  <?php if ( 'regular' == $note_meta['note_type'] ) :
203
  require plugin_dir_path( __FILE__ ) . 'templates/note.php';
readme.txt CHANGED
@@ -1,12 +1,11 @@
1
  === WP Dashboard Notes ===
2
  Contributors: sormano
3
- Donate link: http://jeroensormani.com/donate/
4
  Tags: note, notes, dashboard notes, wordpress notes, admin note, private note, notification, collaboration, workflow, to do list, note list, note widget
5
- Requires at least: 3.8
6
- Tested up to: 4.5
7
- Stable tag: 1.0.8.2
8
  License: GPLv3 or later
9
- License URI: http://www.gnu.org/licenses/gpl-3.0.html ``
10
 
11
  Working with multiple persons on a website? Want to make notes? You can do just that with WP Dashboard Notes. Create beautiful notes with a nice user experience.
12
 
@@ -140,6 +139,9 @@ function wpdn_add_style() {
140
 
141
  == Changelog ==
142
 
 
 
 
143
 
144
  = 1.0.8.2 - 11/04/2016 =
145
 
1
  === WP Dashboard Notes ===
2
  Contributors: sormano
 
3
  Tags: note, notes, dashboard notes, wordpress notes, admin note, private note, notification, collaboration, workflow, to do list, note list, note widget
4
+ Requires at least: 4.0
5
+ Tested up to: 4.9.4
6
+ Stable tag: 1.0.9
7
  License: GPLv3 or later
8
+ License URI: http://www.gnu.org/licenses/gpl-3.0.html
9
 
10
  Working with multiple persons on a website? Want to make notes? You can do just that with WP Dashboard Notes. Create beautiful notes with a nice user experience.
11
 
139
 
140
  == Changelog ==
141
 
142
+ = 1.0.9 - 05/12/2017 =
143
+
144
+ * Improvement - Make sure scripts are only loaded on the dashboard, not on any other page. Why wasn't this included before?!
145
 
146
  = 1.0.8.2 - 11/04/2016 =
147
 
wp-dashboard-notes.php CHANGED
@@ -2,9 +2,8 @@
2
  /**
3
  * Plugin Name: WP Dashboard Notes
4
  * Plugin URI: https://wordpress.org/plugins/wp-dashboard-notes/
5
- * Donate link: http://jeroensormani.com/donate/
6
  * Description: Working in a team? Want to make notes? You can do just that with WP Dashboard Notes. Create beautiful notes with a nice user experience.
7
- * Version: 1.0.8.1
8
  * Author: Jeroen Sormani
9
  * Author URI: http://jeroensormani.com/
10
  * Text Domain: wp-dashboard-notes
@@ -31,7 +30,7 @@ class WP_Dashboard_Notes {
31
  * @since 1.0.3
32
  * @var string $version Plugin version number.
33
  */
34
- public $version = '1.0.8.1';
35
 
36
 
37
  /**
@@ -59,12 +58,13 @@ class WP_Dashboard_Notes {
59
  * @since 1.0.0
60
  */
61
  public function __construct() {
 
62
 
63
- // Init plugin parts
64
- $this->init();
65
-
66
- $this->hooks();
67
-
68
  }
69
 
70
 
@@ -272,7 +272,10 @@ class WP_Dashboard_Notes {
272
  ?><style>
273
  #note_<?php echo $note->ID; ?> { background-color: <?php echo $note_meta['color']; ?>; }
274
  #note_<?php echo $note->ID; ?> .hndle { border: none; }
275
- </style><?php
 
 
 
276
 
277
  if ( $note_meta['note_type'] == 'regular' ) :
278
  require plugin_dir_path( __FILE__ ) . 'includes/templates/note.php';
2
  /**
3
  * Plugin Name: WP Dashboard Notes
4
  * Plugin URI: https://wordpress.org/plugins/wp-dashboard-notes/
 
5
  * Description: Working in a team? Want to make notes? You can do just that with WP Dashboard Notes. Create beautiful notes with a nice user experience.
6
+ * Version: 1.0.9
7
  * Author: Jeroen Sormani
8
  * Author URI: http://jeroensormani.com/
9
  * Text Domain: wp-dashboard-notes
30
  * @since 1.0.3
31
  * @var string $version Plugin version number.
32
  */
33
+ public $version = '1.0.9';
34
 
35
 
36
  /**
58
  * @since 1.0.0
59
  */
60
  public function __construct() {
61
+ global $pagenow;
62
 
63
+ // Only load on index
64
+ if ( $pagenow === 'index.php' || defined( 'DOING_AJAX' ) && DOING_AJAX ) {
65
+ $this->init();
66
+ $this->hooks();
67
+ }
68
  }
69
 
70
 
272
  ?><style>
273
  #note_<?php echo $note->ID; ?> { background-color: <?php echo $note_meta['color']; ?>; }
274
  #note_<?php echo $note->ID; ?> .hndle { border: none; }
275
+ </style>
276
+ <script>
277
+ jQuery( '.wp-dashboard-note-wrap.list-note' ).find( '.list-item input[type=checkbox] ~ span' ).attr( 'contenteditable', true ).addClass( 'list-item-content' );
278
+ </script><?php
279
 
280
  if ( $note_meta['note_type'] == 'regular' ) :
281
  require plugin_dir_path( __FILE__ ) . 'includes/templates/note.php';