PluginProbe ʕ •ᴥ•ʔ
Auto Post Cleaner / 3.2.4
Auto Post Cleaner v3.2.4
3.12.0 3.13.1 3.2.4 3.2.5 3.3.0 3.3.10 3.3.11 3.3.8 3.4.2 3.5.3 3.6.0 3.7.0 3.7.1 3.7.2 3.7.3 3.7.5 3.7.6 3.8.0 3.9.0 3.9.4 3.9.6 3.9.7 trunk 3.0.0 3.1.0 3.10.1 3.10.2 3.11.4
delete-old-posts-programmatically / freemius / templates / sticky-admin-notice-js.php
delete-old-posts-programmatically / freemius / templates Last commit date
account 4 years ago debug 5 years ago forms 5 years ago js 5 years ago partials 4 years ago plugin-info 5 years ago account.php 5 years ago add-ons.php 5 years ago add-trial-to-pricing.php 5 years ago admin-notice.php 5 years ago ajax-loader.php 4 years ago auto-installation.php 5 years ago checkout.php 5 years ago connect.php 5 years ago contact.php 5 years ago debug.php 4 years ago email.php 5 years ago firewall-issues-js.php 4 years ago gdpr-optin-js.php 5 years ago index.php 5 years ago plugin-icon.php 5 years ago powered-by.php 5 years ago pricing.php 5 years ago secure-https-header.php 5 years ago sticky-admin-notice-js.php 4 years ago tabs-capture-js.php 5 years ago tabs.php 5 years ago
sticky-admin-notice-js.php
42 lines
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 // since 2.8 ajaxurl is always defined in the admin header and points to admin-ajax.php
33 $.post( ajaxurl, data, function( response ) {
34
35 });
36
37 notice.remove();
38 });
39 });
40 });
41 </script>
42