Plugin Directory

Changeset 3040929


Ignore:
Timestamp:
02/25/2024 11:07:49 PM (2 years ago)
Author:
gilles66
Message:

tagging version 5.0

Location:
which-template-file/tags/5.0/admin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • which-template-file/tags/5.0/admin/add_menu_page.php

    r3040925 r3040929  
    5454            if ( wp_verify_nonce( $_GET[$this->nonce_name], $this->nonce_name ) ) {
    5555                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';
    6060                }
    6161                else {
     
    107107        parent::display_box_begin( $title, 'display_admin_page' );
    108108
    109         $wtf_option_1 = get_option( _WTF_OPTION_1 );
     109        $wtf_option_1 = htmlspecialchars( get_option( _WTF_OPTION_1 ) );
    110110        ?>
    111111
     
    154154   
    155155    /**
    156     * Génération des liens de bas de page
    157     */
     156     * Génération des liens de bas de page
     157     */
    158158    function set_links_footer() {
    159159        $this->links_footer = [];
  • which-template-file/tags/5.0/admin/class_page_admin.php

    r2980000 r3040929  
    104104    function admin_head() {
    105105        ?>
    106         <style type="text/css">
     106        <style>
    107107            body.toplevel_page_<?php echo $this->get_called_class; ?> div#wpbody-content {
    108108                /* Pour corriger le 65px que wp met par défaut */
Note: See TracChangeset for help on using the changeset viewer.