Changeset 3328412
- Timestamp:
- 07/15/2025 05:27:34 PM (9 months ago)
- Location:
- my-text-shortcodes/trunk
- Files:
-
- 4 edited
-
includes/class-admin-menu.php (modified) (3 diffs)
-
includes/class-controller-form.php (modified) (2 diffs)
-
includes/class-controller-table.php (modified) (1 diff)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
my-text-shortcodes/trunk/includes/class-admin-menu.php
r3327046 r3328412 33 33 public function admin_menu() { 34 34 $hook_list = add_menu_page( 35 __( 'List shortcodes', 'my-text-shortcodes' ),36 __( 'My shortcodes', 'my-text-shortcodes' ),35 __( 'List Shortcodes', 'my-text-shortcodes' ), 36 __( 'My Shortcodes', 'my-text-shortcodes' ), 37 37 'manage_options', 38 38 Controller_Table::SLUG, … … 42 42 add_submenu_page( 43 43 Controller_Table::SLUG, 44 __( 'List shortcodes', 'my-text-shortcodes' ),45 __( 'List shortcodes', 'my-text-shortcodes' ),44 __( 'List Shortcodes', 'my-text-shortcodes' ), 45 __( 'List Shortcodes', 'my-text-shortcodes' ), 46 46 'manage_options', 47 47 Controller_Table::SLUG, … … 51 51 $hook_form = add_submenu_page( 52 52 Controller_Table::SLUG, 53 __( 'Creating shortcode', 'my-text-shortcodes' ),54 __( 'Create shortcode', 'my-text-shortcodes' ),53 __( 'Creating Shortcode', 'my-text-shortcodes' ), 54 __( 'Create Shortcode', 'my-text-shortcodes' ), 55 55 'manage_options', 56 56 Controller_Form::SLUG, -
my-text-shortcodes/trunk/includes/class-controller-form.php
r3327046 r3328412 47 47 48 48 if ( $is_post_request ) { 49 $input_wpnonce = filter_input( INPUT_POST, '_wpnonce', FILTER_CALLBACK, array( 'options' => 'sanitize_text_field' ) ); 50 if ( ! wp_verify_nonce( $input_wpnonce, SECURITY ) ) { 51 Flash::redirect( add_query_arg( array( 'page' => Controller_Table::SLUG ), admin_url( 'admin.php' ) ), __( 'Wrong `wpnonce` value!', 'my-maps' ), false ); 52 } 53 49 54 $input = filter_input( INPUT_POST, 'shortcode', FILTER_DEFAULT, FILTER_REQUIRE_ARRAY ); 50 55 $input = filter_var_array( … … 147 152 148 153 if ( $shortcode_id ) { 149 $form_title = __( 'Editing shortcode', 'my-text-shortcodes' );154 $form_title = __( 'Editing Shortcode', 'my-text-shortcodes' ); 150 155 $query_args['shortcode_id'] = $shortcode_id; 151 156 } else { 152 $form_title = __( 'Creating shortcode', 'my-text-shortcodes' );157 $form_title = __( 'Creating Shortcode', 'my-text-shortcodes' ); 153 158 } 154 159 -
my-text-shortcodes/trunk/includes/class-controller-table.php
r3327046 r3328412 110 110 <div class="wrap"> 111 111 <h2> 112 <?php esc_html_e( 'List shortcodes', 'my-text-shortcodes' ); ?>112 <?php esc_html_e( 'List Shortcodes', 'my-text-shortcodes' ); ?> 113 113 <a href="<?php echo esc_url( add_query_arg( array( 'page' => Controller_Form::SLUG ) ) ); ?>" class="page-title-action"> 114 <?php esc_html_e( 'Add shortcode', 'my-text-shortcodes' ); ?>114 <?php esc_html_e( 'Add Shortcode', 'my-text-shortcodes' ); ?> 115 115 </a> 116 116 </h2> -
my-text-shortcodes/trunk/readme.txt
r3327046 r3328412 29 29 30 30 == Changelog == 31 = 1.1.1 = 32 * Change labels. 33 * Fix security. 34 31 35 = 1.1.0 = 32 36 * Complete code refactoring.
Note: See TracChangeset
for help on using the changeset viewer.