Plugin Directory

Changeset 2147646


Ignore:
Timestamp:
08/29/2019 09:49:57 AM (7 years ago)
Author:
restpack
Message:

enhacement

Location:
save-as-pdf/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • save-as-pdf/trunk/readme.txt

    r2144912 r2147646  
    44Requires at least: 4.1
    55Tested up to: 5.2.1
    6 Stable tag: 1.4
     6Stable tag: 1.5
    77Requires PHP: 5.2.4
    88License: GNUGPLv3
     
    5555== Changelog ==
    5656
     57= 1.5 =
     58* Enhancement
     59
    5760= 1.4 =
    5861* Big fix
  • save-as-pdf/trunk/save-as-pdf.php

    r2144912 r2147646  
    55 * Plugin URI: https://restpack.io/html2pdf
    66 * Description: Allows visitors to save current page as PDF file
    7  * Version: 1.4
     7 * Version: 1.5
    88 * Text Domain: save-as-pdf
    99 * Author: Restpack Inc
     
    6161    add_action('wp_ajax_restpack_ajax', array(&$this, 'restpack_ajax'));
    6262    add_action('wp_ajax_nopriv_restpack_ajax', array(&$this, 'restpack_ajax'));
     63
     64    if(isset($_REQUEST['action']) && $_REQUEST['action']=='restpack_ajax'){
     65      do_action( 'wp_ajax_restpack_ajax' );
     66      do_action( 'wp_ajax_nopriv_restpack_ajax');
     67    }
    6368
    6469    add_shortcode('restpackpdfbutton', array(&$this, 'shortcode'));
Note: See TracChangeset for help on using the changeset viewer.