Plugin Directory

Changeset 3313335


Ignore:
Timestamp:
06/17/2025 02:59:56 PM (9 months ago)
Author:
softcialdeveloper
Message:

2.0 Resolve plugin issues related to the review 2

Location:
smart-answer
Files:
49 added
2 edited

Legend:

Unmodified
Added
Removed
  • smart-answer/trunk/readme.txt

    r3309885 r3313335  
    66Requires at least: 4.0
    77Tested up to: 6.8
    8 Stable tag: 1.9
     8Stable tag: 2.0
    99Requires PHP: 7.4
    1010License: GPLv2 or later
     
    5656== Changelog ==
    5757
     58= 2.0 =
     59Resolve plugin issues related to the review 2.
     60
    5861= 1.9 =
    5962Resolve plugin issues related to the review.
  • smart-answer/trunk/smart-answers.php

    r3309885 r3313335  
    33 * Plugin Name: Smart Answer
    44 * Description: Create custom questions, deploy via shortcodes, manage responses, mark favorites or ban.
    5  * Version: 1.9
     5 * Version: 2.0
    66 * Author: @softcialdeveloper
    77 * License: GPL-2.0+
     
    1919
    2020function sman_custom_admin_styles() {
    21     wp_enqueue_style("sman-custom-admin-styles", plugins_url("/css/admin_styles.css", __FILE__));
    22     wp_register_script("sman-admin-ajax", plugins_url("/js/admin-ajax.js", __FILE__));
     21    wp_enqueue_style("smart-answer-custom-admin-styles", plugins_url("/css/admin_styles.css", __FILE__));
     22    wp_register_script("smart-answer-admin", plugins_url("/js/admin-ajax.js", __FILE__));
    2323    $_array = ["ajaxurl" => admin_url("admin-ajax.php")];
    24     wp_localize_script("sman-admin-ajax", "ajax_object", $_array);
    25     wp_enqueue_script("sman-admin-ajax");
     24    wp_localize_script("smart-answer-admin", "ajax_object", $_array);
     25    wp_enqueue_script("smart-answer-admin");
    2626}
    2727add_action("admin_enqueue_scripts", "sman_custom_admin_styles");
     
    232232        if ($result) {
    233233            wp_send_json_success([
    234                 "message" => __('Your answer has been saved successfully', 'sman') . ".",
     234                "message" => __('Your answer has been saved successfully', "smart-answer") . ".",
    235235            ]);
    236236        } else {
     
    454454//     error_log('PO file path: ' . $po_file);
    455455   
    456 //     error_log('Translation test: ' . __('Your answer has been saved successfully', 'sman'));
     456//     error_log('Translation test: ' . __('Your answer has been saved successfully', "smart-answer"));
    457457// }
    458458// add_action('init', 'debug_translations', 11);
Note: See TracChangeset for help on using the changeset viewer.