Plugin Directory

Changeset 2541530


Ignore:
Timestamp:
06/02/2021 06:53:52 PM (5 years ago)
Author:
astrasecuritysuite
Message:

Update to version 1.2.1 from GitHub

Location:
wp-security-hardening
Files:
2 edited
1 copied

Legend:

Unmodified
Added
Removed
  • wp-security-hardening/tags/1.2.1/wp-hardening.php

    r2465983 r2541530  
    188188            $getvalue = strpos($homeurl, 'plugins.php');
    189189
    190             if (isset($_REQUEST['historyvalue']) && $_REQUEST['historyvalue'] != '') {
    191                 ?>
    192                 <script type="text/javascript">
    193                     localStorage.setItem("wphShowAdminPrompt", '<?php echo $_REQUEST['historyvalue'];?>');
    194                 </script>
    195                 <?php
    196             }
    197 
    198190            if ($getvalue === false) {
    199191            } else {
     
    209201                    </a>
    210202
    211                     <form action="<?php echo $_SERVER['REQUEST_URI']; ?>" method="post">
    212                         <input type="hidden" name="historyvalue" value="1">
    213                         <input class="button button-primary" type="submit" name="submit" value="Got It."/>
     203                    <form>
     204                        <input class="button button-primary" onclick="localStorage.setItem('wphShowAdminPrompt', '1')" type="submit" name="submit" value="Got It."/>
    214205                    </form>
    215206
  • wp-security-hardening/trunk/wp-hardening.php

    r2465983 r2541530  
    188188            $getvalue = strpos($homeurl, 'plugins.php');
    189189
    190             if (isset($_REQUEST['historyvalue']) && $_REQUEST['historyvalue'] != '') {
    191                 ?>
    192                 <script type="text/javascript">
    193                     localStorage.setItem("wphShowAdminPrompt", '<?php echo $_REQUEST['historyvalue'];?>');
    194                 </script>
    195                 <?php
    196             }
    197 
    198190            if ($getvalue === false) {
    199191            } else {
     
    209201                    </a>
    210202
    211                     <form action="<?php echo $_SERVER['REQUEST_URI']; ?>" method="post">
    212                         <input type="hidden" name="historyvalue" value="1">
    213                         <input class="button button-primary" type="submit" name="submit" value="Got It."/>
     203                    <form>
     204                        <input class="button button-primary" onclick="localStorage.setItem('wphShowAdminPrompt', '1')" type="submit" name="submit" value="Got It."/>
    214205                    </form>
    215206
Note: See TracChangeset for help on using the changeset viewer.