WordPress.org

Plugin Directory

Changeset 459433


Ignore:
Timestamp:
11/04/11 14:05:21 (2 years ago)
Author:
lessbloat
Message:

Version 1.5.1 Updated links to the new videopress.com, also added post activation help notification

Location:
video/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • video/trunk/readme.txt

    r427418 r459433  
    66Requires at least: 3.0 
    77Tested up to: 3.2 
    8 Stable tag: 1.5 
     8Stable tag: 1.5.1 
    99 
    1010Manage and embed videos hosted on VideoPress. Requires a WordPress.com blog with the VideoPress premium upgrade. 
     
    7474 
    7575== Changelog == 
     76 
     77= 1.5.1 = 
     78* Changed links to the new VideoPress.com 
     79* Added post activation help message 
    7680 
    7781= 1.5 = 
  • video/trunk/video.php

    r427421 r459433  
    55 * @author Automattic Inc 
    66 * @link http://automattic.com/wordpress-plugins/#videopress VideoPress 
    7  * @version 1.5 
     7 * @version 1.5.1 
    88 * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 
    99 */ 
     
    1111/*  
    1212Plugin Name: VideoPress 
    13 Plugin URI: http://wordpress.org/extend/plugins/video/ 
    14 Description: Upload new videos to <a href="http://videopress.com/">VideoPress</a>, edit metadata, and easily insert VideoPress videos into posts and pages using shortcodes. Requires a <a href="http://wordpress.com/">WordPress.com</a> account and a WordPress.com blog with the <a href="http://en.wordpress.com/products/#videopress">VideoPress upgrade</a> to store and serve uploaded videos. 
     13Plugin URI: http://videopress.com/?ref=plugin 
     14Description: Upload new videos to <a href="http://videopress.com/?ref=plugin">VideoPress</a>, edit metadata, and easily insert VideoPress videos into posts and pages using shortcodes. Requires a <a href="http://wordpress.com/">WordPress.com</a> account and a WordPress.com blog with the <a href="http://en.wordpress.com/products/#videopress">VideoPress upgrade</a> to store and serve uploaded videos. 
    1515Author: Automattic, Niall Kennedy, Joseph Scott, Gary Pendergast 
    1616Contributor: Hailin Wu 
    1717Author URI: http://automattic.com/wordpress-plugins/#videopress 
    18 Version: 1.5 
    19 Stable tag: 1.5 
     18Version: 1.5.1 
     19Stable tag: 1.5.1 
    2020License: GPL v2 - http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 
    2121 */ 
     
    3232     * @since 1.3 
    3333     */ 
    34     const version = '1.5'; 
     34    const version = '1.5.1'; 
    3535 
    3636    /** 
     
    6060     */ 
    6161    public function __construct() { 
     62        // Should we show the getting started message? 
     63        $this->custom_post_activation_notice(); 
    6264        /** 
    6365         * json_decode should be initialized by compat.php. It's a PHP extension that might not be turned on, or could not be compatible with older version of PHP. We won't be able to unpack the server response without it, so let's fail early. 
     
    9597    public function VideoPress() { 
    9698        $this->__construct(); 
     99    } 
     100     
     101    /** 
     102     * Trying to be a bit more helpful immediately after VideoPress is activated 
     103     * 
     104     * @since 1.5.1 
     105     */ 
     106    public function custom_post_activation_notice() { 
     107        $run_once = get_option('video_activation_run_once'); 
     108        if ( basename($_SERVER['SCRIPT_FILENAME']) == 'plugins.php' && isset( $_GET['activate'] ) && true == $_GET['activate'] && !$run_once ) { 
     109            function video_notice() { 
     110                echo " 
     111                <div id='video-notice' class='updated fade'><p><strong>".__('VideoPress is ready.')."</strong> ".sprintf(__('Head over to <a href="%1$s">VideoPress.com</a> if you\'ve yet to grab a VideoPress Subscription.  Also, check out the <a href="%2$s">getting started video</a> for a brief intro to VideoPress.'), "http://videopress.com/?ref=plugin", "http://wordpress.tv/2011/10/07/videopress-for-self-hosted-wordpress-quick-start-guide/")."</p></div> 
     112                "; 
     113                update_option('video_activation_run_once',true); 
     114            } 
     115            add_action('admin_notices', 'video_notice'); 
     116            return; 
     117        } 
    97118    } 
    98119 
Note: See TracChangeset for help on using the changeset viewer.