Changeset 3242752
- Timestamp:
- 02/18/2025 03:44:34 PM (13 months ago)
- Location:
- smart-answer
- Files:
-
- 49 added
- 2 edited
-
tags/1.2 (added)
-
tags/1.2/assets (added)
-
tags/1.2/assets/loading.gif (added)
-
tags/1.2/css (added)
-
tags/1.2/css/admin_styles.css (added)
-
tags/1.2/css/styles.css (added)
-
tags/1.2/includes (added)
-
tags/1.2/includes/admin-questions.php (added)
-
tags/1.2/includes/admin-responses.php (added)
-
tags/1.2/includes/metabox-questions.php (added)
-
tags/1.2/includes/metabox-responses.php (added)
-
tags/1.2/js (added)
-
tags/1.2/js/admin-ajax.js (added)
-
tags/1.2/js/sman-ajax.js (added)
-
tags/1.2/languages (added)
-
tags/1.2/languages/sman-es_CR.mo (added)
-
tags/1.2/languages/sman-es_CR.po (added)
-
tags/1.2/languages/sman-es_CU.mo (added)
-
tags/1.2/languages/sman-es_CU.po (added)
-
tags/1.2/languages/sman-es_DO.mo (added)
-
tags/1.2/languages/sman-es_DO.po (added)
-
tags/1.2/languages/sman-es_EC.mo (added)
-
tags/1.2/languages/sman-es_EC.po (added)
-
tags/1.2/languages/sman-es_ES.mo (added)
-
tags/1.2/languages/sman-es_ES.po (added)
-
tags/1.2/languages/sman-es_GT.mo (added)
-
tags/1.2/languages/sman-es_GT.po (added)
-
tags/1.2/languages/sman-es_HN.mo (added)
-
tags/1.2/languages/sman-es_HN.po (added)
-
tags/1.2/languages/sman-es_MX.mo (added)
-
tags/1.2/languages/sman-es_MX.po (added)
-
tags/1.2/languages/sman-es_NI.mo (added)
-
tags/1.2/languages/sman-es_NI.po (added)
-
tags/1.2/languages/sman-es_PA.mo (added)
-
tags/1.2/languages/sman-es_PA.po (added)
-
tags/1.2/languages/sman-es_PE.mo (added)
-
tags/1.2/languages/sman-es_PE.po (added)
-
tags/1.2/languages/sman-es_PR.mo (added)
-
tags/1.2/languages/sman-es_PR.po (added)
-
tags/1.2/languages/sman-es_PY.mo (added)
-
tags/1.2/languages/sman-es_PY.po (added)
-
tags/1.2/languages/sman-es_SV.mo (added)
-
tags/1.2/languages/sman-es_SV.po (added)
-
tags/1.2/languages/sman-es_UY.mo (added)
-
tags/1.2/languages/sman-es_UY.po (added)
-
tags/1.2/languages/sman-es_VE.mo (added)
-
tags/1.2/languages/sman-es_VE.po (added)
-
tags/1.2/readme.txt (added)
-
tags/1.2/smart-answers.php (added)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/smart-answers.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
smart-answer/trunk/readme.txt
r3242110 r3242752 6 6 Requires at least: 4.0 7 7 Tested up to: 6.4.2 8 Stable tag: 1. 18 Stable tag: 1.2 9 9 Requires PHP: 7.4.33 10 10 License: GPLv2 or later … … 56 56 == Changelog == 57 57 58 = 1.2 = 59 Resolve the error associated with the allow_update shortcode property. 60 58 61 = 1.1 = 59 62 Fix the error that pertains to the display of the user's response. -
smart-answer/trunk/smart-answers.php
r3242112 r3242752 3 3 * Plugin Name: Smart Answer 4 4 * Description: Create custom questions, deploy via shortcodes, manage responses, mark favorites or ban. 5 * Version: 1. 15 * Version: 1.2 6 6 * Author: @softcialdeveloper 7 7 * License: GPL-2.0+ … … 118 118 $current_user = wp_get_current_user(); 119 119 $user_id = $current_user->ID; 120 $response = sman_get_user_response($question_id, $user_id); 121 120 $response = sman_get_user_response($question_id, $user_id); 122 121 123 122 if (!is_null($response)) { … … 129 128 $placeholderText = sprintf(esc_html__("Minimum %d characters", "smart-answer"), $a["minchars"]); 130 129 $response_text = ""; 131 130 $readonly = ""; 131 132 132 if (isset($response->response_text)) { 133 133 $response_text = $response->response_text; 134 } 135 136 $readonly = !$allow_update ? "readonly" : ""; 134 $readonly = !$allow_update ? "readonly" : ""; 135 } 137 136 138 137 $output = " … … 154 153 </div>"; 155 154 156 if (!$allow_update && $response ) {155 if (!$allow_update && $response_text) { 157 156 $yourAnswerText = esc_html__("Your asnswer", "smart-answer"); 158 157 $output = "<p>{$yourAnswerText}:</p><textarea class='textarea-read' readonly>{$response_text}</textarea>";
Note: See TracChangeset
for help on using the changeset viewer.