Changeset 2541530
- Timestamp:
- 06/02/2021 06:53:52 PM (5 years ago)
- Location:
- wp-security-hardening
- Files:
-
- 2 edited
- 1 copied
-
tags/1.2.1 (copied) (copied from wp-security-hardening/trunk)
-
tags/1.2.1/wp-hardening.php (modified) (2 diffs)
-
trunk/wp-hardening.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wp-security-hardening/tags/1.2.1/wp-hardening.php
r2465983 r2541530 188 188 $getvalue = strpos($homeurl, 'plugins.php'); 189 189 190 if (isset($_REQUEST['historyvalue']) && $_REQUEST['historyvalue'] != '') {191 ?>192 <script type="text/javascript">193 localStorage.setItem("wphShowAdminPrompt", '<?php echo $_REQUEST['historyvalue'];?>');194 </script>195 <?php196 }197 198 190 if ($getvalue === false) { 199 191 } else { … … 209 201 </a> 210 202 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."/> 214 205 </form> 215 206 -
wp-security-hardening/trunk/wp-hardening.php
r2465983 r2541530 188 188 $getvalue = strpos($homeurl, 'plugins.php'); 189 189 190 if (isset($_REQUEST['historyvalue']) && $_REQUEST['historyvalue'] != '') {191 ?>192 <script type="text/javascript">193 localStorage.setItem("wphShowAdminPrompt", '<?php echo $_REQUEST['historyvalue'];?>');194 </script>195 <?php196 }197 198 190 if ($getvalue === false) { 199 191 } else { … … 209 201 </a> 210 202 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."/> 214 205 </form> 215 206
Note: See TracChangeset
for help on using the changeset viewer.