Changeset 2236603
- Timestamp:
- 01/31/2020 06:08:36 PM (6 years ago)
- Location:
- remote-snippets/trunk
- Files:
-
- 5 edited
-
readme.txt (modified) (1 diff)
-
remote-snippets.php (modified) (1 diff)
-
src/Remote.php (modified) (1 diff)
-
src/ShortCode.php (modified) (1 diff)
-
src/SingleTemplate.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
remote-snippets/trunk/readme.txt
r2236220 r2236603 4 4 Requires at least: 4.4 5 5 Tested up to: 5.3.2 6 Stable tag: 1.0. 26 Stable tag: 1.0.3 7 7 License: GPLv2 or later 8 8 License URI: https://www.gnu.org/licenses/gpl-2.0.html -
remote-snippets/trunk/remote-snippets.php
r2236220 r2236603 5 5 * Description: Import JSON and CSV data and display it using a Twig template. Consume API's and Webservices and display live data on your Wordpress site. 6 6 * Author: rgjo7n 7 * Version: 1.0. 27 * Version: 1.0.3 8 8 * 9 9 * @package Remote_Snippets -
remote-snippets/trunk/src/Remote.php
r2236216 r2236603 52 52 $userData = (array)wp_get_current_user()->data; 53 53 unset($userData->user_pass); 54 $userMeta = get_user_meta($userData['ID']); 55 unset($userMeta['session_tokens']); 56 $data['wp_user'] = array_merge($userData, $userMeta); 54 55 if (isset($userData['ID'])) { 56 $userMeta = get_user_meta($userData['ID']); 57 unset($userMeta['session_tokens']); 58 $data['wp_user'] = array_merge($userData, $userMeta); 59 } 57 60 58 61 $postData = get_post(get_the_ID()); -
remote-snippets/trunk/src/ShortCode.php
r2236216 r2236603 110 110 } 111 111 112 if ( $settings->remotesnippet_cache_enable == 'Y') {112 if (isset($settings->remotesnippet_cache_enable) && ($settings->remotesnippet_cache_enable == 'Y')) { 113 113 $timeout = (int)$settings->remotesnippet_cache_timeout; 114 114 if ($timeout > 0) { -
remote-snippets/trunk/src/SingleTemplate.php
r2236216 r2236603 5 5 class SingleTemplate 6 6 { 7 public function remotesnippet_single_template($path)7 public static function remotesnippet_single_template($path) 8 8 { 9 9 global $post; … … 17 17 } 18 18 19 public function remotesnippet_the_content($content)19 public static function remotesnippet_the_content($content) 20 20 { 21 21 if (is_singular('remotesnippets')) {
Note: See TracChangeset
for help on using the changeset viewer.