Changeset 2927514
- Timestamp:
- 06/18/2023 12:36:08 PM (3 years ago)
- Location:
- helpfulnessmeter/trunk
- Files:
-
- 4 edited
-
changelog.txt (modified) (1 diff)
-
helpfulnessmeter.php (modified) (4 diffs)
-
js/script.js (modified) (1 diff)
-
readme.txt (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
helpfulnessmeter/trunk/changelog.txt
r2927372 r2927514 1 1 *** HelpfulnessMeter Changelog *** 2 2023-06-18 - version 1.0.2 3 * Update: changelog URL 4 * Fix: nonce names 5 * Deleted: misnamed assets 6 2 7 2023-06-17 - version 1.0.1 3 8 * Update: readme file. -
helpfulnessmeter/trunk/helpfulnessmeter.php
r2927372 r2927514 3 3 Plugin Name: HelpfulnessMeter 4 4 Description: Improve your WordPress content by easily collecting feedback from your visitors. 5 Version: 1.0. 15 Version: 1.0.2 6 6 Author: Ludovic S. Clain 7 7 Author URI: https://ludovicclain.com … … 63 63 } 64 64 register_uninstall_hook(__FILE__, 'hfnm_uninstall'); 65 // Adds "was this helpfulnessmeter"after the content65 // Adds HelpfulnessMeter after the content 66 66 function hfnm_after_post_content($content) 67 67 { … … 89 89 wp_enqueue_style('hfnm-style', esc_url(plugins_url('/css/style.css', __FILE__))); 90 90 wp_enqueue_script('hfnm-script', esc_url(plugins_url('/js/script.js', __FILE__)), array('jquery'), '1.0', TRUE); 91 wp_add_inline_script('hfnm-script', 'var nonce_ wthf= ' . wp_json_encode(wp_create_nonce("hfnm_nonce")) . ';var ajaxurl = "' . esc_url(admin_url('admin-ajax.php')) . '";', TRUE);91 wp_add_inline_script('hfnm-script', 'var nonce_hfnm = ' . wp_json_encode(wp_create_nonce("hfnm_nonce")) . ';var ajaxurl = "' . esc_url(admin_url('admin-ajax.php')) . '";', TRUE); 92 92 } 93 93 } … … 289 289 wp_enqueue_style('hfnm-style', plugins_url('/css/style.css', __FILE__)); 290 290 wp_enqueue_script('hfnm-script', plugins_url('/js/script.js', __FILE__), array('jquery'), '1.0', TRUE); 291 wp_add_inline_script('hfnm-script', 'var nonce_ wthf= "' . wp_create_nonce("hfnm_nonce") . '";var ajaxurl = "' . admin_url('admin-ajax.php') . '";', TRUE);291 wp_add_inline_script('hfnm-script', 'var nonce_hfnm = "' . wp_create_nonce("hfnm_nonce") . '";var ajaxurl = "' . admin_url('admin-ajax.php') . '";', TRUE); 292 292 // The widget markup 293 293 $content = '<div id="helpfulnessmeter" data-post-id="' . esc_attr($post_id) . '" data-thank-text="' . esc_attr(get_option("hfnm_thank_text")) . '"><div id="hfnm-title">' . esc_html(get_option("hfnm_question_text")) . '</div><div id="hfnm-yes-no"><span data-value="1">' . esc_html(get_option("hfnm_yes_text")) . '</span><span data-value="0">' . esc_html(get_option("hfnm_no_text")) . '</span></div></div>'; -
helpfulnessmeter/trunk/js/script.js
r2927290 r2927514 11 11 } 12 12 // Send Ajax 13 $.post(ajaxurl, { action: "hfnm_ajax", id: postID, val: value, nonce: nonce_ wthf}).done(function (data) {13 $.post(ajaxurl, { action: "hfnm_ajax", id: postID, val: value, nonce: nonce_hfnm }).done(function (data) { 14 14 setCookie("helpfulnessmeter_id_" + postID, "1"); 15 15 }); -
helpfulnessmeter/trunk/readme.txt
r2927372 r2927514 5 5 Requires at least: 6.0 6 6 Tested up to: 6.2 7 Stable tag: 1.0. 17 Stable tag: 1.0.2 8 8 Requires PHP: 7.4 9 9 License: GPLv2 or later … … 50 50 = From wordpress.org = 51 51 1. Download [HelpfulnessMeter](https://wordpress.org/plugins/helpfulnessmeter) 52 2. Upload the ‘HelpfulnessMeter’ directory to your ‘/wp-content/plugins/’ directory, using your favorite method (ftp, sftp, scp, etc…)52 2. Upload the `HelpfulnessMeter` directory to your `/wp-content/plugins/` directory, using your favorite method (ftp, sftp, scp…) 53 53 3. Activate HelpfulnessMeter from your Plugins page 54 54 … … 70 70 71 71 = Who are the developers? = 72 [Ludovic S. CLAIN](https://ludovicclain.com) 73 Integrator from Réunion who has the honor of being part of the [WordPress community](https://profiles.wordpress.org/ludovicsclain) 72 [Ludovic S. CLAIN](https://ludovicclain.com) from Reunion island 🇷🇪 who has the honor of being part of the [WordPress community](https://profiles.wordpress.org/ludovicsclain) 74 73 75 74 = Can I help you? = … … 83 82 84 83 == Changelog == 85 For the complete changelog history, please refer to the separate "changelog.txt" file included in the plugin directory.84 For the complete changelog history, please [click here](https://plugins.svn.wordpress.org/helpfulnessmeter/trunk/changelog.txt) or refer to the separate "changelog.txt" file included in the plugin directory. 86 85 87 86 == Latest Updates == 87 = 1.0.2 = 88 * Minor updates and fixes 89 88 90 = 1.0.1 = 89 91 * Minor updates and fixes
Note: See TracChangeset
for help on using the changeset viewer.