WordPress.org

Plugin Directory

Changeset 231333


Ignore:
Timestamp:
04/20/10 21:46:53 (4 years ago)
Author:
MrWiblog
Message:

0.8.4 (2010/04/20) Implemented new Plugin Register version.

Location:
voucherpress/trunk
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • voucherpress/trunk/readme.txt

    r230100 r231333  
    55Requires at least: 2.8 
    66Tested up to: 2.9.2 
    7 Stable tag: 0.8.3 
     7Stable tag: 0.8.4 
    88 
    99VoucherPress is a Wordpress plugin that allows you to give downloadable, printable vouchers/tickets/coupons/tokens in PDF format away on your site. 
     
    6363== Changelog == 
    6464 
     650.8.4 (2010/04/20) Implemented new Plugin Register version. 
    65660.8.3 (2010/04/17) Fixed bugs with expiry date, download limit and email registration. Changed Plugin Register to be opt-in. 
    66670.8.2 (2010/04/12) Stopped failure of chmod() on custom templates directory causing warnings 
  • voucherpress/trunk/voucherpress.php

    r230099 r231333  
    33 * @package VoucherPress 
    44 * @author Chris Taylor 
    5  * @version 0.8.3 
     5 * @version 0.8.4 
    66 */ 
    77/* 
    88Plugin Name: VoucherPress 
    99Plugin URI: http://www.stillbreathing.co.uk/projects/voucherpress/ 
    10 Description: VoucherPress allows you to offer downloadable, printable vouchers from your Wordpress site. Vouchers can be available to anyone, or require a name and email address before they can be downloaded. <strong>Please <a href="plugins.php?register=voucherpress">register this plugin</a> to tell the developer you are using it. This just sends your site name and URL to the developer.</strong> 
     10Description: VoucherPress allows you to offer downloadable, printable vouchers from your Wordpress site. Vouchers can be available to anyone, or require a name and email address before they can be downloaded. 
    1111Author: Chris Taylor 
    12 Version: 0.8.3 
     12Version: 0.8.4 
    1313Author URI: http://www.stillbreathing.co.uk/ 
    1414*/ 
     
    1616// set the current version 
    1717function voucherpress_current_version() { 
    18     return "0.8.3"; 
     18    return "0.8.4"; 
    1919} 
    2020 
     
    2222register_activation_hook( __FILE__, voucherpress_activate ); 
    2323register_deactivation_hook( __FILE__, voucherpress_deactivate ); 
    24  
    25 if ( isset($_GET["register"]) && $_GET["register"] == "voucherpress" ) { 
    26     $plugin = "VoucherPress"; 
    27     $version = voucherpress_current_version(); 
    28     $site = get_option( "blogname" ); 
    29     $url = get_option( "siteurl" ); 
    30     $register_url = "http://www.stillbreathing.co.uk/?plugin=" . urlencode( $plugin ) . "&version=" . urlencode( $version ) . "&site=" . urlencode( $site ) . "&url=" . urlencode( $url ); 
    31     wp_remote_fopen( $register_url ); 
    32     add_action( "admin_notices", "voucherpress_register_thanks" ); 
    33 } 
    34 function voucherpress_register_thanks() { 
    35     echo ' 
    36     <div id="message" class="updated fade"> 
    37         <p><strong>' . __( 'Thank you for registering your use of this plugin.', "voucherpress" ) . '</strong></p> 
    38     </div> 
    39     '; 
    40 } 
    4124 
    4225// initialise the plugin 
     
    20642047    print $r; 
    20652048} 
     2049 
     2050require_once( "plugin-register.class.php" ); 
     2051$register = new Plugin_Register(); 
     2052$register->file = __FILE__; 
     2053$register->slug = "voucherpress"; 
     2054$register->name = "VoucherPress"; 
     2055$register->version =voucherpress_current_version(); 
     2056$register->developer = "Chris Taylor"; 
     2057$register->homepage = "http://www.stillbreathing.co.uk"; 
     2058$register->Plugin_Register(); 
    20662059?> 
Note: See TracChangeset for help on using the changeset viewer.