Changeset 1181193
- Timestamp:
- 06/15/2015 03:56:57 PM (11 years ago)
- Location:
- angularjs-for-wp/trunk
- Files:
-
- 2 edited
-
plugin.php (modified) (2 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
angularjs-for-wp/trunk/plugin.php
r1181178 r1181193 4 4 * Plugin URI: http://www.roysivan.com/angularjs-for-wordpress 5 5 * Description: This plugin will allow you to easily load WordPress content client-side using AngularJS. JSON REST API required. 6 * Version: 2.0. 06 * Version: 2.0.1 7 7 * Author: Roy Sivan 8 8 * Author URI: http://www.roysivan.com … … 60 60 } 61 61 62 63 $angularjs_for_wp_localize = array( 64 'site' => get_bloginfo('wpurl'), 65 'nonce' => wp_create_nonce( 'wp_json' ), 66 'template_directory' => $template_directory 67 ); 68 69 if( function_exists( 'json_url' ) ) { 70 $angularjs_for_wp_localize['base'] = json_url(); 71 } 72 73 if( function_exists( 'rest_get_url_prefix' ) ) { 74 $angularjs_for_wp_localize['base'] = get_bloginfo( 'wpurl') . '/' . rest_get_url_prefix() . '/wp/v2'; 75 } 76 62 77 // Localize Variables 63 78 wp_localize_script( 64 79 'angular-core', 65 80 'wpAngularVars', 66 array( 67 'site' => get_bloginfo('wpurl'), 68 'base' => get_bloginfo( 'wpurl') . '/' . rest_get_url_prefix() . '/wp/v2', 69 'nonce' => wp_create_nonce( 'wp_json' ), 70 'template_directory' => $template_directory 71 ) 81 $angularjs_for_wp_localize 72 82 ); 73 83 } -
angularjs-for-wp/trunk/readme.txt
r1181173 r1181193 5 5 Requires at least: 3.9 6 6 Tested up to: 4.2.2 7 Stable tag: 2.0. 07 Stable tag: 2.0.1 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 74 74 * Adding in HTML Janitor - [fixing issue](https://github.com/royboy789/angularjs-for-wordpress/issues/6) 75 75 76 = 2.0. 0=77 * Now works with JSON REST API v2 beta 76 = 2.0.1 = 77 * Now works with JSON REST API v2 beta with v1 fallback
Note: See TracChangeset
for help on using the changeset viewer.