Plugin Directory

Changeset 2017285


Ignore:
Timestamp:
01/23/2019 02:26:50 AM (7 years ago)
Author:
wpdashboard
Message:

starting updates for 2.0

Location:
wp-dashboard/trunk
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • wp-dashboard/trunk/admin/partials/wpdashboard-admin-partial-header.php

    r2017282 r2017285  
    1919                <div class="column">
    2020                    <h1 class="title">
    21                         WP Dashboard<span style="font-size: 18px;"> - V2.0 Coming Soon! Not updating WILL disconnect the site!</span>
     21                        WP Dashboard
    2222                    </h1>
    2323                </div>
  • wp-dashboard/trunk/includes/class-wpdashboard-activator.php

    r2017282 r2017285  
    3838            }
    3939        }
     40        if (! wp_next_scheduled ( 'wpdashboard_send_updates_available', [] )) {
     41            wp_schedule_event( time(), 'hourly', 'wpdashboard_send_updates_available', [] );
     42        }
    4043    }
    4144
  • wp-dashboard/trunk/includes/class-wpdashboard-deactivator.php

    r2017282 r2017285  
    4141        delete_option('wpdashboard_admin_user');
    4242        delete_option('wpdashboard_tag_manager_id');
     43
     44        wp_clear_scheduled_hook( 'wpdashboard_send_updates_available' );
    4345    }
    4446
  • wp-dashboard/trunk/includes/class-wpdashboard-updates.php

    r1894855 r2017285  
    4040        $body['plugins'] = get_plugin_updates();
    4141
     42        wp_die($body);
     43
    4244        $result = $client->post('https://my.wpdashboard.io/api/v2/sites/' . self::get_option('api_key') . '/updates', [
    4345            'body' => $body
  • wp-dashboard/trunk/includes/class-wpdashboard.php

    r2017282 r2017285  
    122122         */
    123123        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'api/class-wpdashboard-api.php';
     124
     125        /**
     126         * The class responsible for defining all actions that send webhooks out.
     127         */
     128        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'webhooks/class-wpdashboard-webhooks.php';
    124129
    125130        /**
     
    188193
    189194    /**
    190      * Register all of the hooks related to the admin area functionality
    191      * of the plugin.
     195     * Register all of the hooks related to the API, and for the webhooks.
    192196     *
    193197     * @since    1.0.0
     
    202206        $this->loader->add_action( 'parse_request', $plugin_api, 'detect_redirects' );
    203207
     208        $webhook_api = new Wpdashboard_WebHooks( $this->get_plugin_name(), $this->get_version() );
     209
     210        $webhook_api->init();
     211
    204212    }
    205213
  • wp-dashboard/trunk/readme.txt

    r2017282 r2017285  
    44Tags: wpdashboard, wp, dashboard, manage, updates, plugins, wpdash, dash
    55Requires at least: 3.0.1
    6 Tested up to: 5.0.3
     6Tested up to: 4.9.1
    77Requires PHP: 5.6
    8 Stable tag: 1.1.19
     8Stable tag: 1.1.18
    99License: GPLv2 or later
    1010License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    3838    Connecting HubSpot sets up the tracking script automatically. No configuration required.
    3939
    40 * Slack (coming soon)
     40* SMS Notifications
     41    Get important information about your site in real time via SMS.
     42
     43* Slack Notifications (coming soon)
    4144    See 404 errors as they happen, when your site has visit spikes, or broken links. Get notified instantly.
    4245
    43 * More coming soon
    4446
    45 
     47App coming soon to iOS! Android in Q3 of 2018, get notifications straight to your phone, and manage your sites in one place.
    4648
    4749
     
    5557== Changelog ==
    5658
    57 = 1.1.19 =
    58 * Added warning about V2.0
     59= 2.0.0 =
     60* Complete re-work of the information gathering!
     61    * Moved to Webhook version, no more pounding servers/sites for information!
     62    * Information is now updated in real-time on the dashboard
     63    * Old version is still in place for those sites NOT upgraded, so no worries!
     64* Gathering more information, and re-working how the plugin's backend works!
     65* Starting implementation of the REST API extension, instead of using our own
     66* Starting implementation of the ability to pack up a site and move it
     67* Bug fixes for PHP 5.6
    5968
    6069= 1.1.18 =
  • wp-dashboard/trunk/wpdashboard.php

    r2017282 r2017285  
    1717 * Plugin URI:        https://wpdashboard.io
    1818 * Description:       Manage your Wordpress installations in one place.
    19  * Version:           1.1.19
     19 * Version:           1.1.18
    2020 * Author:            WP Dashboard
    2121 * Author URI:        https://wpdashboard.io
     
    3131}
    3232
    33 define( 'WP_DASHBOARD_VERSION', '1.1.19' );
     33define( 'WP_DASHBOARD_VERSION', '1.1.18' );
    3434
    3535/**
     
    5959 */
    6060require plugin_dir_path( __FILE__ ) . 'includes/class-wpdashboard.php';
     61require plugin_dir_path( __FILE__ ) . 'includes/class-wpdashboard-updates.php';
    6162
    6263/**
     
    7475    $plugin->run();
    7576
     77    add_action( 'wpdashboard_send_updates_available', 'wpdashboard_send_updates_available_now', 10, 2 );
     78
    7679}
    7780
     
    8285}
    8386
     87function wpdashboard_send_updates_available_now($args_1, $args_2 ) {
     88    WpDashboard_Updates::send();
     89}
     90
    8491run_wpdashboard();
Note: See TracChangeset for help on using the changeset viewer.