Plugin Directory

Changeset 2927514


Ignore:
Timestamp:
06/18/2023 12:36:08 PM (3 years ago)
Author:
ludovicsclain
Message:

Minor updates and fixes

Location:
helpfulnessmeter/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • helpfulnessmeter/trunk/changelog.txt

    r2927372 r2927514  
    11*** HelpfulnessMeter Changelog ***
     22023-06-18 - version 1.0.2
     3 * Update: changelog URL
     4 * Fix: nonce names
     5 * Deleted: misnamed assets
     6
    272023-06-17 - version 1.0.1
    38 * Update: readme file.
  • helpfulnessmeter/trunk/helpfulnessmeter.php

    r2927372 r2927514  
    33Plugin Name: HelpfulnessMeter
    44Description: Improve your WordPress content by easily collecting feedback from your visitors.
    5 Version: 1.0.1
     5Version: 1.0.2
    66Author: Ludovic S. Clain
    77Author URI: https://ludovicclain.com
     
    6363}
    6464register_uninstall_hook(__FILE__, 'hfnm_uninstall');
    65 // Adds "was this helpfulnessmeter" after the content
     65// Adds HelpfulnessMeter after the content
    6666function hfnm_after_post_content($content)
    6767{
     
    8989        wp_enqueue_style('hfnm-style', esc_url(plugins_url('/css/style.css', __FILE__)));
    9090        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);
    9292    }
    9393}
     
    289289            wp_enqueue_style('hfnm-style', plugins_url('/css/style.css', __FILE__));
    290290            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);
    292292            // The widget markup
    293293            $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  
    1111        }
    1212        // 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) {
    1414            setCookie("helpfulnessmeter_id_" + postID, "1");
    1515        });
  • helpfulnessmeter/trunk/readme.txt

    r2927372 r2927514  
    55Requires at least: 6.0
    66Tested up to: 6.2
    7 Stable tag: 1.0.1
     7Stable tag: 1.0.2
    88Requires PHP: 7.4
    99License: GPLv2 or later
     
    5050= From wordpress.org =
    51511. 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…)
     522. Upload the `HelpfulnessMeter` directory to your `/wp-content/plugins/` directory, using your favorite method (ftp, sftp, scp…)
    53533. Activate HelpfulnessMeter from your Plugins page
    5454
     
    7070
    7171= 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)
    7473
    7574= Can I help you? =
     
    8382
    8483== Changelog ==
    85 For the complete changelog history, please refer to the separate "changelog.txt" file included in the plugin directory.
     84For 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.
    8685
    8786== Latest Updates ==
     87= 1.0.2 =
     88* Minor updates and fixes
     89
    8890= 1.0.1 =
    8991* Minor updates and fixes
Note: See TracChangeset for help on using the changeset viewer.