Changeset 3040929
- Timestamp:
- 02/25/2024 11:07:49 PM (2 years ago)
- Location:
- which-template-file/tags/5.0/admin
- Files:
-
- 2 edited
-
add_menu_page.php (modified) (3 diffs)
-
class_page_admin.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
which-template-file/tags/5.0/admin/add_menu_page.php
r3040925 r3040929 54 54 if ( wp_verify_nonce( $_GET[$this->nonce_name], $this->nonce_name ) ) { 55 55 if ( $_GET[_WTF_OPTION_1] == 'administrator' || $_GET[_WTF_OPTION_1] == 'all' ) { 56 $wtf_option_1 = htmlspecialchars( $_GET[_WTF_OPTION_1] );57 update_option( _WTF_OPTION_1, $wtf_option_1 );58 $this->notice_msg = 'Setting updated !';59 $this->notice_class = 'updated';56 $wtf_option_1 = htmlspecialchars( $_GET[_WTF_OPTION_1] ); 57 update_option( _WTF_OPTION_1, $wtf_option_1 ); 58 $this->notice_msg = 'Setting updated !'; 59 $this->notice_class = 'updated'; 60 60 } 61 61 else { … … 107 107 parent::display_box_begin( $title, 'display_admin_page' ); 108 108 109 $wtf_option_1 = get_option( _WTF_OPTION_1);109 $wtf_option_1 = htmlspecialchars( get_option( _WTF_OPTION_1 ) ); 110 110 ?> 111 111 … … 154 154 155 155 /** 156 * Génération des liens de bas de page157 */156 * Génération des liens de bas de page 157 */ 158 158 function set_links_footer() { 159 159 $this->links_footer = []; -
which-template-file/tags/5.0/admin/class_page_admin.php
r2980000 r3040929 104 104 function admin_head() { 105 105 ?> 106 <style type="text/css">106 <style> 107 107 body.toplevel_page_<?php echo $this->get_called_class; ?> div#wpbody-content { 108 108 /* Pour corriger le 65px que wp met par défaut */
Note: See TracChangeset
for help on using the changeset viewer.