PluginProbe
Passster – Password Protect Pages and Content / 4.3.17
Passster – Password Protect Pages and Content v4.3.17
4.3.17 4.3.16 4.3.15 4.3.14 4.3.12 4.3.13 4.3.11 4.3.10 4.3.9 4.3.8 4.3.7 4.3.6 4.3.5 trunk 3.5.4 3.5.5.2 3.5.5.8 3.5.5.9 4.0 4.1.4 4.2.10 4.2.11 4.2.12 4.2.13 4.2.14 All 49 releases
← All changes | inc/freemius/templates/sticky-admin-notice-js.php +40 -40 4.2.13 → 4.3.17 View file →
@@ -1,40 +1,40 @@
1 -<?php
2 - /**
3 - * Sticky admin notices JavaScript handler for dismissing notice messages
4 - * by sending AJAX call to the server in order to remove the message from the Database.
5 - *
6 - * @package Freemius
7 - * @copyright Copyright (c) 2015, Freemius, Inc.
8 - * @license https://www.gnu.org/licenses/gpl-3.0.html GNU General Public License Version 3
9 - * @since 1.0.7
10 - */
11 -
12 - if ( ! defined( 'ABSPATH' ) ) {
13 - exit;
14 - }
15 -?>
16 -<script type="text/javascript" >
17 - jQuery( document ).ready(function( $ ) {
18 - $( '.fs-notice.fs-sticky .fs-close' ).click(function() {
19 - var
20 - notice = $( this ).parents( '.fs-notice' ),
21 - id = notice.attr( 'data-id' ),
22 - ajaxActionSuffix = notice.attr( 'data-manager-id' ).replace( ':', '-' );
23 -
24 - notice.fadeOut( 'fast', function() {
25 - var data = {
26 - action : 'fs_dismiss_notice_action_' + ajaxActionSuffix,
27 - // As such we don't need to use `wp_json_encode` method but using it to follow wp.org guideline.
28 - _wpnonce : <?php echo wp_json_encode( wp_create_nonce( 'fs_dismiss_notice_action' ) ); ?>,
29 - message_id: id
30 - };
31 -
32 - $.post( <?php echo Freemius::ajax_url() ?>, data, function( response ) {
33 -
34 - });
35 -
36 - notice.remove();
37 - });
38 - });
39 - });
40 -</script>
1 +<?php
2 + /**
3 + * Sticky admin notices JavaScript handler for dismissing notice messages
4 + * by sending AJAX call to the server in order to remove the message from the Database.
5 + *
6 + * @package Freemius
7 + * @copyright Copyright (c) 2015, Freemius, Inc.
8 + * @license https://www.gnu.org/licenses/gpl-3.0.html GNU General Public License Version 3
9 + * @since 1.0.7
10 + */
11 +
12 + if ( ! defined( 'ABSPATH' ) ) {
13 + exit;
14 + }
15 +?>
16 +<script type="text/javascript" >
17 + jQuery( document ).ready(function( $ ) {
18 + $( '.fs-notice.fs-sticky .fs-close' ).click(function() {
19 + var
20 + notice = $( this ).parents( '.fs-notice' ),
21 + id = notice.attr( 'data-id' ),
22 + ajaxActionSuffix = notice.attr( 'data-manager-id' ).replace( ':', '-' );
23 +
24 + notice.fadeOut( 'fast', function() {
25 + var data = {
26 + action : 'fs_dismiss_notice_action_' + ajaxActionSuffix,
27 + // As such we don't need to use `wp_json_encode` method but using it to follow wp.org guideline.
28 + _wpnonce : <?php echo wp_json_encode( wp_create_nonce( 'fs_dismiss_notice_action' ) ); ?>,
29 + message_id: id
30 + };
31 +
32 + $.post( <?php echo Freemius::ajax_url() ?>, data, function( response ) {
33 +
34 + });
35 +
36 + notice.remove();
37 + });
38 + });
39 + });
40 +</script>