Changeset 1776739
- Timestamp:
- 11/28/2017 09:56:55 AM (8 years ago)
- Location:
- wp-pwa
- Files:
-
- 16 added
- 2 edited
-
tags/1.0.3 (added)
-
tags/1.0.3/README.md (added)
-
tags/1.0.3/admin (added)
-
tags/1.0.3/admin/js (added)
-
tags/1.0.3/admin/js/wp-pwa-admin.js (added)
-
tags/1.0.3/admin/wp-pwa-admin-page.php (added)
-
tags/1.0.3/assets (added)
-
tags/1.0.3/assets/css (added)
-
tags/1.0.3/assets/css/wp-pwa-plugin.css (added)
-
tags/1.0.3/assets/wp_pwa_20x20.png (added)
-
tags/1.0.3/injector (added)
-
tags/1.0.3/injector/injector.js (added)
-
tags/1.0.3/injector/injector.min.js (added)
-
tags/1.0.3/injector/wp-pwa-injector.php (added)
-
tags/1.0.3/readme.txt (added)
-
tags/1.0.3/wp-pwa.php (added)
-
trunk/readme.txt (modified) (3 diffs)
-
trunk/wp-pwa.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wp-pwa/trunk/readme.txt
r1773939 r1776739 1 1 === WordPress PWA === 2 Contributors: poliuk, luisherranz, rmartinezduque, orballo 2 Contributors: poliuk, luisherranz, rmartinezduque, orballo, davidarenas 3 3 Tags: html5, pwa, webapp, progressive web app 4 4 Donate link: 5 5 Requires at least: 4.4 6 6 Tested up to: 4.8.2 7 Stable tag: 1.0. 27 Stable tag: 1.0.3 8 8 License: GPLv3 9 9 License URI: http://www.gnu.org/licenses/gpl.html … … 12 12 13 13 == Description == 14 <blockquote><strong>IMPORTANT</strong> 15 This plugin is still in beta, if you want to access the beta program please write an email to support@worona.org.</blockquote> 16 14 17 15 18 The simplest way to create Progressive Web Apps with WordPress. No coding skills required. Free forever. 19 16 20 17 21 == Installation == … … 22 26 23 27 == Changelog == 28 29 = 1.0.3 = 30 * /wp-pwa/site-info/ endpoint available again. 24 31 25 32 = 1.0.2 = -
wp-pwa/trunk/wp-pwa.php
r1773939 r1776739 4 4 Plugin URI: https://wordpress.org/plugins/wordpress-pwa/ 5 5 Description: WordPress plugin to turn WordPress blogs into Progressive Web Apps. 6 Version: 1.0. 26 Version: 1.0.3 7 7 Author: WordPress PWA 8 8 Author URI: … … 16 16 { 17 17 // vars 18 public $plugin_version = '1.0. 2';18 public $plugin_version = '1.0.3'; 19 19 public $rest_api_installed = false; 20 20 public $rest_api_active = false; … … 56 56 57 57 add_action( 'rest_api_init', function () { 58 register_rest_route( 'wp _pwa/v1', '/siteid/', array(58 register_rest_route( 'wp-pwa/v1', '/siteid/', array( 59 59 'methods' => 'GET', 60 60 'callback' => array( $this,'get_wp_pwa_site_id')) 61 61 ); 62 register_rest_route( 'wp _pwa/v1', '/discover/', array(62 register_rest_route( 'wp-pwa/v1', '/discover/', array( 63 63 'methods' => 'GET', 64 64 'callback' => array( $this,'discover_url')) 65 65 ); 66 register_rest_route( 'wp _pwa/v1', '/plugin-version/', array(66 register_rest_route( 'wp-pwa/v1', '/plugin-version/', array( 67 67 'methods' => 'GET', 68 68 'callback' => array( $this,'get_wp_pwa_plugin_version')) 69 69 ); 70 register_rest_route( 'wp-pwa/v1', '/site-info/', array( 71 'methods' => 'GET', 72 'callback' => array( $this,'get_site_info')) 73 ); 70 74 }); 71 75 // filters … … 192 196 function get_wp_pwa_plugin_version() { 193 197 return array('plugin_version' => $this->plugin_version); 198 } 199 200 function get_site_info() { 201 $homepage_title = get_bloginfo( 'name' ); 202 $homepage_metadesc = get_bloginfo( 'description' ); 203 $per_page = get_option("posts_per_page"); 204 205 $site_info = array( 206 'homepage_title' => $homepage_title, 207 'homepage_metadesc' => $homepage_metadesc, 208 'per_page' => $per_page 209 ); 210 211 if(has_filter('wp_pwa_get_site_info')) { 212 $site_info = apply_filters('wp_pwa_get_site_info', $site_info); 213 } 214 215 return array( 216 'home' => array( 217 'title' => $site_info['homepage_title'], 218 'description' => $site_info['homepage_metadesc'] 219 ), 220 'perPage' => $site_info['per_page'] 221 ); 194 222 } 195 223
Note: See TracChangeset
for help on using the changeset viewer.