Changeset 3162315
- Timestamp:
- 10/03/2024 05:51:00 PM (18 months ago)
- Location:
- wpdash-notes
- Files:
-
- 59 added
- 4 edited
-
tags/1.3.5 (added)
-
tags/1.3.5/assets (added)
-
tags/1.3.5/assets/css (added)
-
tags/1.3.5/assets/css/checklist_in_post.css (added)
-
tags/1.3.5/assets/css/checklist_in_post_frontend.css (added)
-
tags/1.3.5/assets/css/select2.min.css (added)
-
tags/1.3.5/assets/img (added)
-
tags/1.3.5/assets/img/bg_pub.png (added)
-
tags/1.3.5/assets/js (added)
-
tags/1.3.5/assets/js/checklist_in_post.js (added)
-
tags/1.3.5/assets/js/checklist_in_post_frontend.js (added)
-
tags/1.3.5/assets/js/select2.min.js (added)
-
tags/1.3.5/autoload.php (added)
-
tags/1.3.5/blocks (added)
-
tags/1.3.5/blocks/pub_wpboutik.php (added)
-
tags/1.3.5/classes (added)
-
tags/1.3.5/classes/dashboard-news.php (added)
-
tags/1.3.5/classes/plugin.php (added)
-
tags/1.3.5/classes/pub.php (added)
-
tags/1.3.5/classes/singleton.php (added)
-
tags/1.3.5/composer.json (added)
-
tags/1.3.5/composer.lock (added)
-
tags/1.3.5/languages (added)
-
tags/1.3.5/languages/wpdash-notes-fr_FR.mo (added)
-
tags/1.3.5/languages/wpdash-notes-fr_FR.po (added)
-
tags/1.3.5/languages/wpdash-notes.pot (added)
-
tags/1.3.5/readme.txt (added)
-
tags/1.3.5/vendor (added)
-
tags/1.3.5/vendor/autoload.php (added)
-
tags/1.3.5/vendor/composer (added)
-
tags/1.3.5/vendor/composer/ClassLoader.php (added)
-
tags/1.3.5/vendor/composer/InstalledVersions.php (added)
-
tags/1.3.5/vendor/composer/LICENSE (added)
-
tags/1.3.5/vendor/composer/autoload_classmap.php (added)
-
tags/1.3.5/vendor/composer/autoload_files.php (added)
-
tags/1.3.5/vendor/composer/autoload_namespaces.php (added)
-
tags/1.3.5/vendor/composer/autoload_psr4.php (added)
-
tags/1.3.5/vendor/composer/autoload_real.php (added)
-
tags/1.3.5/vendor/composer/autoload_static.php (added)
-
tags/1.3.5/vendor/composer/installed.json (added)
-
tags/1.3.5/vendor/composer/installed.php (added)
-
tags/1.3.5/vendor/composer/platform_check.php (added)
-
tags/1.3.5/vendor/nicolaskulka (added)
-
tags/1.3.5/vendor/nicolaskulka/wp-dismissible-notices-handler (added)
-
tags/1.3.5/vendor/nicolaskulka/wp-dismissible-notices-handler/assets (added)
-
tags/1.3.5/vendor/nicolaskulka/wp-dismissible-notices-handler/assets/js (added)
-
tags/1.3.5/vendor/nicolaskulka/wp-dismissible-notices-handler/assets/js/main.js (added)
-
tags/1.3.5/vendor/nicolaskulka/wp-dismissible-notices-handler/composer.json (added)
-
tags/1.3.5/vendor/nicolaskulka/wp-dismissible-notices-handler/composer.lock (added)
-
tags/1.3.5/vendor/nicolaskulka/wp-dismissible-notices-handler/handler.php (added)
-
tags/1.3.5/vendor/nicolaskulka/wp-dismissible-notices-handler/includes (added)
-
tags/1.3.5/vendor/nicolaskulka/wp-dismissible-notices-handler/includes/helper-functions.php (added)
-
tags/1.3.5/vendor/nicolaskulka/wp-review-me (added)
-
tags/1.3.5/vendor/nicolaskulka/wp-review-me/.gitignore (added)
-
tags/1.3.5/vendor/nicolaskulka/wp-review-me/README.md (added)
-
tags/1.3.5/vendor/nicolaskulka/wp-review-me/composer.json (added)
-
tags/1.3.5/vendor/nicolaskulka/wp-review-me/composer.lock (added)
-
tags/1.3.5/vendor/nicolaskulka/wp-review-me/review.php (added)
-
tags/1.3.5/wpdash-notes.php (added)
-
trunk/assets/js/checklist_in_post_frontend.js (modified) (1 diff)
-
trunk/classes/plugin.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/wpdash-notes.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wpdash-notes/trunk/assets/js/checklist_in_post_frontend.js
r2422139 r3162315 106 106 var params = {}; 107 107 params.post_id = response.post_id; 108 params._wpnonce = response.nonce; 108 109 wp.ajax.post('postitlistcomment', params).done(function (response) { 109 110 var parent = $('#wpf-post-it-' + response.post_id); -
wpdash-notes/trunk/classes/plugin.php
r3100718 r3162315 25 25 } 26 26 27 public static function admin_notices() {28 $screen = get_current_screen();29 if ( $screen && 'edit-wpf_post_it' === $screen->id ) {30 include( WPDASH_NOTES_DIR . '/blocks/pub_wpboutik.php' );31 }32 }27 public static function admin_notices() { 28 $screen = get_current_screen(); 29 if ( $screen && 'edit-wpf_post_it' === $screen->id ) { 30 include( WPDASH_NOTES_DIR . '/blocks/pub_wpboutik.php' ); 31 } 32 } 33 33 34 34 public static function install() { … … 205 205 wp_insert_comment( $data ); 206 206 207 wp_send_json_success( [ 'post_id' => $postid ] );207 wp_send_json_success( [ 'post_id' => $postid, 'nonce' => wp_create_nonce( 'nonce_list_comment' ) ] ); 208 208 } 209 209 210 210 public static function wp_ajax_post_it_list_comment() { 211 check_ajax_referer( 'nonce_list_comment' ); 212 211 213 $post_id = isset( $_POST['post_id'] ) ? sanitize_text_field( $_POST['post_id'] ) : ''; 212 214 213 $comments = get_comments( 214 array( 215 'post_id' => $post_id, 216 'order' => 'ASC' 217 ) 218 ); 219 220 $html = ''; 221 222 if ( ! empty ( $comments ) ) { 223 $texthtml = ( count( $comments ) > 1 ) ? __( 'Comments :', 'wpdash-notes' ) : __( 'Comment :', 'wpdash-notes' ); 224 $html .= $texthtml . '<br>'; 225 foreach ( $comments as $comment ) { 226 $html .= '<b>' . $comment->comment_author . '</b> : ' . $comment->comment_content . '<br>'; 215 if ( $post_id ) { 216 $post = get_post( $post_id ); 217 if ( 'wpf_post_it' === $post->post_type ) { 218 $comments = get_comments( 219 array( 220 'post_id' => $post_id, 221 'order' => 'ASC' 222 ) 223 ); 224 225 $html = ''; 226 227 if ( ! empty ( $comments ) ) { 228 $texthtml = ( count( $comments ) > 1 ) ? __( 'Comments :', 'wpdash-notes' ) : __( 'Comment :', 'wpdash-notes' ); 229 $html .= $texthtml . '<br>'; 230 foreach ( $comments as $comment ) { 231 $html .= '<b>' . $comment->comment_author . '</b> : ' . $comment->comment_content . '<br>'; 232 } 233 } 234 235 wp_send_json_success( array( 'html' => $html, 'post_id' => $post_id ) ); 227 236 } 228 237 } 229 230 wp_send_json_success( array( 'html' => $html, 'post_id' => $post_id ) );231 238 } 232 239 -
wpdash-notes/trunk/readme.txt
r3100718 r3162315 4 4 Requires at least: 4.2 5 5 Tested up to: 6.5 6 Stable tag: 1.3. 4.16 Stable tag: 1.3.5 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 72 72 == Changelog == 73 73 74 = 1.3.5 = 75 * Fix Vulenrability : Missing Authorization to Authenticated (Subscriber+) Sensitive Information Exposure (Thanks Wordfence) 76 74 77 = 1.3.4.1 = 75 78 * Fix screen admin notices -
wpdash-notes/trunk/wpdash-notes.php
r3100718 r3162315 3 3 Plugin Name: WPDash Notes 4 4 Description: WPDash Notes est un plugin qui vous permet de créer des notes sur votre tableau de bord WordPress et sur ceux des autres utilisateurs. 5 Version: 1.3. 4.15 Version: 1.3.5 6 6 Author: WPFormation, NicolasKulka, WPServeur 7 7 Author URI: https://wpformation.com/ … … 18 18 19 19 // Plugin constants 20 define( 'WPDASH_NOTES_VERSION', '1.3. 4.1' );20 define( 'WPDASH_NOTES_VERSION', '1.3.5' ); 21 21 define( 'WPDASH_NOTES_FOLDER', 'wpdash-notes' ); 22 22 define( 'WPDASH_NOTES_BASENAME', plugin_basename( __FILE__ ) );
Note: See TracChangeset
for help on using the changeset viewer.