WordPress.org

Plugin Directory

Changeset 627150


Ignore:
Timestamp:
11/19/12 17:25:21 (17 months ago)
Author:
willmot
Message:

Another attempt at version 2.4 :-)

Location:
wpremote
Files:
2 added
6 edited
1 copied

Legend:

Unmodified
Added
Removed
  • wpremote/tags/2.4.3/backupwordpress/plugin.php

    r617728 r627150  
    11<?php 
    2  
    3 /* 
    4 Plugin Name: BackUpWordPress 
    5 Plugin URI: http://hmn.md/backupwordpress/ 
    6 Description: Simple automated backups of your WordPress powered website. Once activated you'll find me under <strong>Tools &rarr; Backups</strong>. 
    7 Author: Human Made Limited 
    8 Version: 2.0.6 
    9 Author URI: http://hmn.md/ 
    10 */ 
    112 
    123/*  Copyright 2011 Human Made Limited  (email : support@hmn.md) 
     
    117108 
    118109    // define the plugin version 
    119     define( 'HMBKP_VERSION', $plugin_data['Version'] ); 
     110    define( 'HMBKP_VERSION', '2.0.6' ); 
    120111 
    121112    // Load translations 
  • wpremote/trunk/backupwordpress/plugin.php

    r617728 r627150  
    11<?php 
    2  
    3 /* 
    4 Plugin Name: BackUpWordPress 
    5 Plugin URI: http://hmn.md/backupwordpress/ 
    6 Description: Simple automated backups of your WordPress powered website. Once activated you'll find me under <strong>Tools &rarr; Backups</strong>. 
    7 Author: Human Made Limited 
    8 Version: 2.0.6 
    9 Author URI: http://hmn.md/ 
    10 */ 
    112 
    123/*  Copyright 2011 Human Made Limited  (email : support@hmn.md) 
     
    117108 
    118109    // define the plugin version 
    119     define( 'HMBKP_VERSION', $plugin_data['Version'] ); 
     110    define( 'HMBKP_VERSION', '2.0.6' ); 
    120111 
    121112    // Load translations 
  • wpremote/trunk/plugin.php

    r617740 r627150  
    44Plugin Name: WP Remote 
    55Description: Manage your WordPress site with <a href="https://wpremote.com/">WP Remote</a>. <strong>Deactivate to clear your API Key.</strong> 
    6 Version: 2.4.2 
     6Version: 2.4.3 
    77Author: Human Made Limited 
    88Author URI: http://hmn.md/ 
     
    4444 
    4545require_once( WPRP_PLUGIN_PATH . '/wprp.admin.php' ); 
     46require_once( WPRP_PLUGIN_PATH . '/wprp.compatability.php' ); 
    4647 
    4748// Backups require 3.1 
     
    5354        $plugin_file = dirname( plugin_dir_path( HMBKP_PLUGIN_PATH ) ) . 'plugin.php'; 
    5455 
     56        require_once( ABSPATH . 'wp-admin/includes/plugin.php' ); 
    5557        deactivate_plugins( array( 'backupwordpress/plugin.php' ), true ); 
    5658 
     
    7779    remove_filter( 'all_plugins', 'hmbkp_plugin_row', 10 ); 
    7880    remove_filter( 'plugin_action_links', 'hmbkp_plugin_action_link', 10, 2 ); 
     81 
    7982} 
    8083 
     
    130133    } 
    131134 
    132         class WPRP_Core_Upgrader_Skin extends WP_Upgrader_Skin { 
     135    class WPRP_Core_Upgrader_Skin extends WP_Upgrader_Skin { 
    133136 
    134137        var $feedback; 
     
    175178add_action( 'init', 'wprp_catch_api_call', 1 ); 
    176179 
     180$plugin_data = get_plugin_data( __FILE__ ); 
     181 
     182// define the plugin version 
     183define( 'WPRP_VERSION', $plugin_data['Version'] ); 
     184 
     185// Fire the update action 
     186//if ( WPR_VERSION != get_option( 'wpr_plugin_version' ) ) 
     187    wprp_update(); 
     188 
     189/** 
     190 * Run any update code and update the current version in the db 
     191 * 
     192 * @access public 
     193 * @return void 
     194 */ 
     195function wprp_update() { 
     196 
     197    /** 
     198     * Remove the old _wpremote_backups directory 
     199     */ 
     200    $uploads_dir = wp_upload_dir(); 
     201 
     202    $old_wpremote_dir = trailingslashit( $uploads_dir['basedir'] ) . '_wpremote_backups'; 
     203 
     204    if ( file_exists( $old_wpremote_dir ) && function_exists( 'hmbkp_rmdirtree' ) ) 
     205        hmbkp_rmdirtree( $old_wpremote_dir ); 
     206 
     207    // Update the version stored in the db 
     208    if ( get_option( 'wprp_plugin_version' ) !== WPRP_VERSION ) 
     209        update_option( 'wprp_plugin_version', WPRP_VERSION ); 
     210 
     211} 
     212 
    177213function _wprp_upgrade_core()  { 
    178214 
  • wpremote/trunk/readme.txt

    r617749 r627150  
    44Requires at least: 2.9 
    55Tested up to: 3.5 
    6 Stable tag: 2.3.1 
     6Stable tag: 2.4.3 
    77 
    88WP Remote is a free web app that enables you to easily manage all of your WordPress powered sites from one place. 
     
    3232== Changelog == 
    3333 
    34 #### 2.4.1 
     34#### 2.4.1 - 2.4.3 
    3535 
    3636* Minor bug fixes 
     
    3939 
    4040* Backups are now powered by BackUpWordPress. 
     41* We now detect the popular security plugins that can affect WP Remote and show a message with a link to how to resolve the common issues. 
    4142* The BackUpWordPress Plugin can no longer be run alongside WP Remote. 
    4243* Emphasise that you can deactivate the plugin to clear your API key. 
  • wpremote/trunk/wprp.plugins.php

    r612780 r627150  
    192192 
    193193    return array( 
    194  
    195         'gravity_forms' => '_wpr_get_gravity_form_plugin_data' 
    196  
     194        'gravity_forms' => '_wpr_get_gravity_form_plugin_data', 
     195        'backupbuddy' => '_wpr_get_backupbuddy_plugin_data' 
    197196    ); 
     197 
    198198} 
    199199 
     
    219219 
    220220} 
     221 
     222function _wpr_get_backupbuddy_plugin_data() { 
     223 
     224    if ( !class_exists('pb_backupbuddy') || !is_a(pb_backupbuddy::$_updater, 'pb_backupbuddy_updater') || !method_exists(pb_backupbuddy::$_updater, 'check_for_updates') ) 
     225        return false; 
     226 
     227    $current_version = pb_backupbuddy::settings('version'); 
     228    $update_data = pb_backupbuddy::$_updater->check_for_updates(); 
     229 
     230    if ($update_data->key_status != 'ok' || version_compare($update_data->new_version, $current_version, '<=')) 
     231        return false; 
     232 
     233    $update_data->plugin_location = $update_data->slug; // needed in _wpr_add_non_extend_plugin_support() 
     234 
     235    return $update_data; 
     236 
     237} 
  • wpremote/trunk/wprp.themes.php

    r612755 r627150  
    1111 
    1212    // Get all themes 
    13     $themes = get_themes(); 
     13    if ( function_exists( 'wp_get_themes' ) ) 
     14        $themes = wp_get_themes(); 
     15    else 
     16        $themes = get_themes(); 
    1417 
    1518    // Get the list of active themes 
Note: See TracChangeset for help on using the changeset viewer.