| Server IP : 68.178.247.200 / Your IP : 216.73.217.37 Web Server : Apache System : Linux p3plzcpnl489463.prod.phx3.secureserver.net 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64 User : x9dppmxs4rgd ( 8559391) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /proc/self/cwd/wp-content/plugins/wp-letsencrypt-ssl/freemius/templates/ |
Upload File : |
<?php
/**
* Sticky admin notices JavaScript handler for dismissing notice messages
* by sending AJAX call to the server in order to remove the message from the Database.
*
* @package Freemius
* @copyright Copyright (c) 2015, Freemius, Inc.
* @license https://www.gnu.org/licenses/gpl-3.0.html GNU General Public License Version 3
* @since 1.0.7
*/
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
?>
<script type="text/javascript" >
jQuery( document ).ready(function( $ ) {
$( '.fs-notice.fs-sticky .fs-close' ).click(function() {
var
notice = $( this ).parents( '.fs-notice' ),
id = notice.attr( 'data-id' ),
ajaxActionSuffix = notice.attr( 'data-manager-id' ).replace( ':', '-' );
notice.fadeOut( 'fast', function() {
var data = {
action : 'fs_dismiss_notice_action_' + ajaxActionSuffix,
// As such we don't need to use `wp_json_encode` method but using it to follow wp.org guideline.
_wpnonce : <?php echo wp_json_encode( wp_create_nonce( 'fs_dismiss_notice_action' ) ); ?>,
message_id: id
};
$.post( <?php echo Freemius::ajax_url() ?>, data, function( response ) {
});
notice.remove();
});
});
});
</script>