Changeset 3385553
- Timestamp:
- 10/28/2025 04:12:05 AM (4 months ago)
- Location:
- ai-content-generation
- Files:
-
- 61 added
- 6 edited
-
tags/1.3.04 (added)
-
tags/1.3.04/assets (added)
-
tags/1.3.04/assets/css (added)
-
tags/1.3.04/assets/css/admin.css (added)
-
tags/1.3.04/assets/css/jquery-ui.css (added)
-
tags/1.3.04/assets/css/sweetalert2.min.css (added)
-
tags/1.3.04/assets/img (added)
-
tags/1.3.04/assets/img/Video.png (added)
-
tags/1.3.04/assets/img/icon.svg (added)
-
tags/1.3.04/assets/img/logo.png (added)
-
tags/1.3.04/assets/img/logo.svg (added)
-
tags/1.3.04/assets/js (added)
-
tags/1.3.04/assets/js/admin.js (added)
-
tags/1.3.04/assets/js/classic-editor.js (added)
-
tags/1.3.04/assets/js/post-generator.js (added)
-
tags/1.3.04/assets/js/seo.js (added)
-
tags/1.3.04/assets/js/showdown.min.js (added)
-
tags/1.3.04/assets/js/sweetalert2.all.min.js (added)
-
tags/1.3.04/assets/js/vue.global.js (added)
-
tags/1.3.04/assets/js/woocommerce.js (added)
-
tags/1.3.04/assets/js/wpwand-gutenberg.js (added)
-
tags/1.3.04/inc (added)
-
tags/1.3.04/inc/Finestics (added)
-
tags/1.3.04/inc/Finestics/Client.php (added)
-
tags/1.3.04/inc/Finestics/Insights.php (added)
-
tags/1.3.04/inc/WooCommerce.php (added)
-
tags/1.3.04/inc/admin.php (added)
-
tags/1.3.04/inc/api.php (added)
-
tags/1.3.04/inc/config.php (added)
-
tags/1.3.04/inc/data.php (added)
-
tags/1.3.04/inc/editor.php (added)
-
tags/1.3.04/inc/frontend.php (added)
-
tags/1.3.04/inc/gutenberg.php (added)
-
tags/1.3.04/inc/helper-functions.php (added)
-
tags/1.3.04/inc/modules (added)
-
tags/1.3.04/inc/modules/elementor (added)
-
tags/1.3.04/inc/modules/elementor/assets (added)
-
tags/1.3.04/inc/modules/elementor/assets/css (added)
-
tags/1.3.04/inc/modules/elementor/assets/css/editor.css (added)
-
tags/1.3.04/inc/modules/elementor/assets/css/jquery-ui.css (added)
-
tags/1.3.04/inc/modules/elementor/assets/img (added)
-
tags/1.3.04/inc/modules/elementor/assets/img/Video.png (added)
-
tags/1.3.04/inc/modules/elementor/assets/img/icon.png (added)
-
tags/1.3.04/inc/modules/elementor/assets/img/icon.svg (added)
-
tags/1.3.04/inc/modules/elementor/assets/js (added)
-
tags/1.3.04/inc/modules/elementor/assets/js/editor.js (added)
-
tags/1.3.04/inc/modules/elementor/assets/js/showdown.min.js (added)
-
tags/1.3.04/inc/modules/elementor/inc (added)
-
tags/1.3.04/inc/modules/elementor/inc/controls (added)
-
tags/1.3.04/inc/modules/elementor/inc/controls/text.php (added)
-
tags/1.3.04/inc/modules/elementor/inc/controls/textarea.php (added)
-
tags/1.3.04/inc/modules/elementor/inc/controls/wysiwyg.php (added)
-
tags/1.3.04/inc/modules/elementor/inc/elementor.php (added)
-
tags/1.3.04/inc/modules/elementor/readme.txt (added)
-
tags/1.3.04/inc/modules/elementor/wp-wand-elementor.php (added)
-
tags/1.3.04/inc/post-generator.php (added)
-
tags/1.3.04/inc/view (added)
-
tags/1.3.04/inc/view/post-generator.php (added)
-
tags/1.3.04/inc/white-label.php (added)
-
tags/1.3.04/readme.txt (added)
-
tags/1.3.04/wp-wand.php (added)
-
trunk/inc/admin.php (modified) (3 diffs)
-
trunk/inc/editor.php (modified) (2 diffs)
-
trunk/inc/gutenberg.php (modified) (1 diff)
-
trunk/inc/post-generator.php (modified) (1 diff)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/wp-wand.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
ai-content-generation/trunk/inc/admin.php
r3364535 r3385553 3 3 function wpwand_settings_page() 4 4 { 5 6 if (current_user_can('manage_options')) : 5 7 $openai_activate_text = WPWAND_OPENAI_KEY 6 8 ? esc_html__('Active', 'wp-wand') … … 419 421 </div> 420 422 <?php 423 else : ?> 424 <div class="wrap"> 425 <h2><?php echo esc_html(wpwand_brand_name()); ?></h2> 426 <p><?php esc_html_e('You do not have sufficient permissions to access this page.', 'wp-wand'); ?></p> 427 </div> 428 <?php endif; ?> 429 <?php 421 430 } 422 431 423 432 function wpwand_register_menu() 424 433 { 425 add_menu_page(wpwand_brand_name(), wpwand_brand_name(), ' manage_options', 'wpwand', '', wpwand_loago_icon_url());426 add_submenu_page('wp -wand', wpwand_brand_name(), 'Settings', 'manage_options', 'wpwand', 'wpwand_settings_page');434 add_menu_page(wpwand_brand_name(), wpwand_brand_name(), 'edit_posts', 'wpwand', 'wpwand_settings_page', wpwand_loago_icon_url()); 435 add_submenu_page('wpwand', wpwand_brand_name(), 'Settings', 'edit_posts', 'wpwand', 'wpwand_settings_page'); 427 436 428 437 … … 433 442 '', 434 443 '', 435 ' manage_options',444 'edit_posts', 436 445 '', 437 446 '' -
ai-content-generation/trunk/inc/editor.php
r3211354 r3385553 8 8 function wpwand_ai_buttons() 9 9 { 10 if (is_admin() && current_user_can(' manage_options')) {10 if (is_admin() && current_user_can('edit_posts')) { 11 11 ?> 12 12 <script> … … 48 48 function wpwand_add_buttons($plugins) 49 49 { 50 if (current_user_can(' manage_options')) {50 if (current_user_can('edit_posts')) { 51 51 $plugins['wpwandeditor'] = WPWAND_PLUGIN_URL . 'assets/js/classic-editor.js'; 52 52 } -
ai-content-generation/trunk/inc/gutenberg.php
r3241564 r3385553 8 8 { 9 9 $wpwand_editor_button_menus = apply_filters('wpwand_editor_prompts', wpwand_editor_prompts()); 10 if (is_admin() && current_user_can(' manage_options')) {10 if (is_admin() && current_user_can('edit_posts')) { 11 11 wp_enqueue_script( 12 12 'wpwand-gutenberg-custom-button', -
ai-content-generation/trunk/inc/post-generator.php
r3360273 r3385553 37 37 function register_menu() 38 38 { 39 add_submenu_page('wpwand', __('Bulk Posts', 'wp-wand'), __('Bulk Posts', 'wp-wand'), ' manage_options', 'wpwand-post-generator', [$this, 'post_generate_page']);39 add_submenu_page('wpwand', __('Bulk Posts', 'wp-wand'), __('Bulk Posts', 'wp-wand'), 'edit_posts', 'wpwand-post-generator', [$this, 'post_generate_page']); 40 40 } 41 41 -
ai-content-generation/trunk/readme.txt
r3384592 r3385553 6 6 Requires PHP: 8.3 7 7 Tested up to: 6.8.3 8 Stable Tag: 1.3.0 38 Stable Tag: 1.3.04 9 9 License: GPL-2.0+ 10 10 License URI: http://www.gnu.org/licenses/gpl-2.0.txt … … 354 354 == Changelog == 355 355 356 = 1.3.04 = 357 * New: WP Wand now available for Editor role. 358 356 359 = 1.3.03 = 357 360 * Fixed: Dall E Image Generation Issue. -
ai-content-generation/trunk/wp-wand.php
r3384592 r3385553 5 5 * Plugin URI: https://wpwand.com/ 6 6 * Description: WP Wand is a AI content generation plugin for WordPress that helps your team create high quality content 10X faster and 50x cheaper. No monthly subscription required. 7 * Version: 1.3.0 37 * Version: 1.3.04 8 8 * Author: WP Wand 9 9 * Author URI: https://wpwand.com/ 10 10 * Text Domain: wp-wand 11 11 * License: GPL-2.0+ 12 * Requires PHP: 7.412 * Requires PHP: 8.3 13 13 * License URI: http://www.gnu.org/licenses/gpl-2.0.txt 14 14 */ … … 50 50 define('WPWAND_AI_CHARACTER', ''); 51 51 52 if (!current_user_can(' manage_options')) {52 if (!current_user_can('edit_posts')) { 53 53 return false; 54 54 }
Note: See TracChangeset
for help on using the changeset viewer.