forked from GoogleChromeLabs/pwa-wp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pwa.php
46 lines (39 loc) · 1.42 KB
/
pwa.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<?php
/**
* PWA
*
* @package PWA
* @author XWP
* @license GPL-2.0+
*
* @wordpress-plugin
* Plugin Name: PWA
* Plugin URI: https://github.com/xwp/pwa-wp
* Description: Feature plugin to bring Progressive Web App (PWA) capabilities to Core
* Version: 0.1.0
* Author: XWP, Google, and contributors
* Author URI: https://github.com/xwp/pwa-wp/graphs/contributors
* Text Domain: pwa
* License: GPL-2.0+
* License URI: http://www.gnu.org/licenses/gpl-2.0.txt
* GitHub Plugin URI: https://github.com/xwp/pwa-wp
* Requires PHP: 5.2
* Requires WP: 4.9
*/
define( 'PWA_VERSION', '0.1.0' );
define( 'PWA_PLUGIN_FILE', __FILE__ );
define( 'PWA_PLUGIN_DIR', dirname( __FILE__ ) );
/** WP_Web_App_Manifest Class */
require PWA_PLUGIN_DIR . '/wp-includes/class-wp-web-app-manifest.php';
/** WP_HTTPS_Detection Class */
require PWA_PLUGIN_DIR . '/wp-includes/class-wp-https-detection.php';
/** WP_Service_Workers Class */
require PWA_PLUGIN_DIR . '/wp-includes/class-wp-service-workers.php';
/** WordPress Service Worker Functions */
require PWA_PLUGIN_DIR . '/wp-includes/service-workers.php';
/** Amend default filters */
require PWA_PLUGIN_DIR . '/wp-includes/default-filters.php';
$wp_web_app_manifest = new WP_Web_App_Manifest();
$wp_web_app_manifest->init();
$wp_https_detection = new WP_HTTPS_Detection();
$wp_https_detection->init();