Changeset 3470167
- Timestamp:
- 02/26/2026 10:43:30 AM (10 days ago)
- Location:
- webtexttool/trunk
- Files:
-
- 3 edited
-
README.txt (modified) (2 diffs)
-
core/class-webtexttool-core.php (modified) (2 diffs)
-
webtexttool.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
webtexttool/trunk/README.txt
r3454513 r3470167 4 4 Requires at least: 3.5 or higher 5 5 Tested up to: 6.9 6 Stable tag: 3.6. 46 Stable tag: 3.6.5 7 7 License: GPLv2 or later 8 8 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 84 84 85 85 == Changelog == 86 87 = 3.6.5 = 88 89 Release Date: February 26th, 2026 90 91 * Fix: check if user can edit specific post 86 92 87 93 = 3.6.4 = -
webtexttool/trunk/core/class-webtexttool-core.php
r3454513 r3470167 736 736 $action = $this->get_webtexttoolnonce_action(); // text used to generate or check the nonce. 737 737 738 if (!current_user_can('edit_posts')) {739 exit;740 }741 742 738 // check if the nonce and data exist, otherwise exit 743 739 if (array_key_exists('nonce', $_POST) && array_key_exists('data', $_POST) && array_key_exists('postId', $_POST)) { … … 746 742 $data = $_POST['data']; 747 743 $pageid = $_POST['postId']; 744 745 // Check if user can edit this specific post 746 if (!current_user_can('edit_post', $pageid)) { 747 $output['message'] = 'unauthorized'; 748 header("Content-Type: application/json"); 749 echo json_encode($output); 750 die(); 751 } 748 752 749 753 $option_key = $data['option']; -
webtexttool/trunk/webtexttool.php
r3454513 r3470167 7 7 * Plugin URI: https://www.textmetrics.com 8 8 * Description: Textmetrics is the easiest way to create SEO proof content to rank higher and get more traffic. Realtime optimization, keyword research and more. 9 * Version: 3.6. 49 * Version: 3.6.5 10 10 * Author: Textmetrics 11 11 * Author URI: https://www.textmetrics.com … … 16 16 */ 17 17 18 define('WTT_VERSION', '3.6. 4');18 define('WTT_VERSION', '3.6.5'); 19 19 define('WTT_SHORT_URL', "api.textmetrics.com"); 20 20 define('WTT_BASE_API_URL', 'https://api.textmetrics.com/');
Note: See TracChangeset
for help on using the changeset viewer.