PluginProbe ʕ •ᴥ•ʔ
WP 2FA – Two-factor authentication for WordPress / 4.0.0
WP 2FA – Two-factor authentication for WordPress v4.0.0
4.0.0 1.7.1 2.0.0 2.0.1 2.1.0 2.2.0 2.2.1 2.3.0 2.4.0 2.4.1 2.4.2 2.5.0 2.6.0 2.6.1 2.6.2 2.6.3 2.6.4 2.7.0 2.8.0 2.9.0 2.9.1 2.9.2 2.9.3 3.0.0 3.0.1 3.1.0 3.1.1 3.1.1.2 trunk 1.2.0 1.3.0 1.4.0 1.4.1 1.4.2 1.5.0 1.5.1 1.5.2 1.6.0 1.6.1 1.6.2 1.7.0
wp-2fa / includes / libraries / EDD_SL_Plugin_Updater.php
wp-2fa / includes / libraries Last commit date
EDD_SL_Plugin_Updater.php 6 days ago
EDD_SL_Plugin_Updater.php
68 lines
1 <?php
2 /**
3 * Easy Digital Downloads Software Licensing Plugin Updater
4 *
5 * This file is a placeholder/stub for the EDD Software Licensing updater class.
6 *
7 * TO USE EDD LICENSING:
8 * Download the actual updater class from:
9 * https://github.com/easydigitaldownloads/EDD-License-Handler/blob/master/EDD_SL_Plugin_Updater.php
10 *
11 * And replace this file with the downloaded version.
12 *
13 * @package WP2FA
14 * @subpackage Licensing
15 * @copyright Easy Digital Downloads
16 * @license GPL-2.0+
17 * @since 3.2.0
18 */
19
20 if ( ! class_exists( 'EDD_SL_Plugin_Updater' ) ) {
21
22 /**
23 * EDD Software Licensing Plugin Updater Class
24 *
25 * IMPORTANT: This is a STUB/PLACEHOLDER class.
26 * Replace this file with the actual EDD_SL_Plugin_Updater class from:
27 * https://github.com/easydigitaldownloads/EDD-License-Handler
28 *
29 * @since 3.2.0
30 */
31 class EDD_SL_Plugin_Updater {
32
33 /**
34 * Stub constructor.
35 *
36 * @param string $api_url The URL pointing to the custom API endpoint.
37 * @param string $plugin_file Path to the plugin file.
38 * @param array $api_data Optional data to send with API calls.
39 */
40 public function __construct( $api_url = '', $plugin_file = '', $api_data = array() ) {
41 // This is a placeholder. Download the real class from EDD.
42 if ( defined( 'WP_DEBUG' ) && WP_DEBUG ) {
43 error_log( 'WP2FA: EDD_SL_Plugin_Updater is a stub. Please download the real class from https://github.com/easydigitaldownloads/EDD-License-Handler' );
44 }
45 }
46
47 /**
48 * Placeholder initialization method.
49 */
50 public function init() {
51 // Placeholder
52 }
53 }
54 }
55
56 /**
57 * INSTRUCTIONS FOR SETUP:
58 *
59 * 1. Download the EDD Software Licensing updater:
60 * https://github.com/easydigitaldownloads/EDD-License-Handler/blob/master/EDD_SL_Plugin_Updater.php
61 *
62 * 2. Replace THIS file with the downloaded file
63 *
64 * 3. The EDD_Provider class will automatically use it for plugin updates
65 *
66 * 4. No other changes needed - the licensing system will handle the rest
67 */
68