Changeset 1929493
- Timestamp:
- 08/24/2018 04:59:05 AM (8 years ago)
- Location:
- ultimate-wp-rest/trunk
- Files:
-
- 7 edited
-
admin/assets/css/materialize.custom.css (modified) (1 diff)
-
includes/plugin-module-cache.php (modified) (1 diff)
-
includes/plugin-module-rest-api.php (modified) (1 diff)
-
includes/plugin-module-setting.php (modified) (2 diffs)
-
includes/plugin-module-tool.php (modified) (1 diff)
-
readme.txt (modified) (1 diff)
-
ultimate_wp_rest.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
ultimate-wp-rest/trunk/admin/assets/css/materialize.custom.css
r1925325 r1929493 100 100 .tabs .tab a:focus, 101 101 .tabs .tab a:focus.active { 102 background-color: rgba(255, 255, 255, 0.7);102 background-color: #fff; 103 103 outline: none; 104 104 } -
ultimate-wp-rest/trunk/includes/plugin-module-cache.php
r1925325 r1929493 90 90 } 91 91 92 bdump($arguments, $function);92 //bdump($arguments, $function); 93 93 94 94 if ($this->memory !== false) { 95 95 $result = $this->memory->$function(...$arguments); 96 bdump($result, 'memory');96 //bdump($result, 'memory'); 97 97 } 98 98 99 99 if ($this->memcached !== false && ($result === null || $function === 'save')) { 100 100 $result = $this->memcached->$function(...$arguments); 101 bdump($result, 'memcached');101 //bdump($result, 'memcached'); 102 102 } 103 103 104 104 if ($this->file !== false && ($result === null || $function === 'save')) { 105 105 $result = $this->file->$function(...$arguments); 106 bdump($result, 'file');106 //bdump($result, 'file'); 107 107 } 108 108 -
ultimate-wp-rest/trunk/includes/plugin-module-rest-api.php
r1925325 r1929493 34 34 // Auth by Nonce 35 35 if (UTM_WP_REST_API_AUTH_MODE === 'nonce') { 36 if (!function_exists('wp_create_nonce')) { 37 require_once ABSPATH . "wp-includes/pluggable.php"; 38 } 36 39 define('UTM_WP_REST_API_NONCE', wp_create_nonce('wp_rest')); 37 40 } -
ultimate-wp-rest/trunk/includes/plugin-module-setting.php
r1925325 r1929493 20 20 public function registerDebugger($bForce = false) { 21 21 if (!function_exists('wp_get_current_user')) { 22 include ABSPATH . "wp-includes/pluggable.php";22 require_once ABSPATH . "wp-includes/pluggable.php"; 23 23 } 24 24 … … 360 360 ///////////// Register All Scripts/Styles ///////////// 361 361 public function registerAllScripts() { 362 363 // Filter URL script364 add_filter('clean_url', [$this->PWP->tool, 'parseURLScripts'], 11, 1);365 366 362 wp_register_script(UTM_WP_REST_TEXTDOMAIN . '-materialize', UTM_WP_REST_URL . 'admin/assets/js/materialize.min.js', ['jquery'], false, true); 367 363 wp_register_script(UTM_WP_REST_TEXTDOMAIN . '-jscookie', UTM_WP_REST_URL . 'admin/assets/js/js.cookie.min.js', ['jquery'], false, true); -
ultimate-wp-rest/trunk/includes/plugin-module-tool.php
r1925325 r1929493 156 156 } 157 157 158 // Async load159 public function parseURLScripts($sURL) {160 // Get all #[setting] in url161 preg_match_all('/(.*?)\#([^#]+)/', $sURL, $aMatch);162 163 $sAttr = '';164 foreach ($aMatch[2] as $sMatch) {165 $sPattern = '/=(.*?)$/';166 $sReplacement = "='$1'";167 $sMatch = preg_replace($sPattern, $sReplacement, $sMatch, -1, $iCount);168 169 // etc: async -> async='async'170 if ($iCount === 0) {171 $sMatch .= "='$sMatch'";172 }173 174 $sAttr .= $sMatch . ' ';175 }176 177 // Original URL178 if ($sAttr !== '') {179 $sURL = trim($aMatch[1][0] . "' $sAttr");180 181 // Remove quote182 if (substr($sURL, -1) === "'") {183 $sURL = substr($sURL, 0, -1);184 }185 }186 187 return $sURL;188 }189 190 158 public function arraySearchRecursive($mFind, $aData, $bOnlyParent = false, $sKeyParent = 0) { 191 159 foreach ($aData as $sKey => $nValue) { -
ultimate-wp-rest/trunk/readme.txt
r1925623 r1929493 47 47 48 48 == Changelog == 49 50 = 1.0 = 49 = 1.2.2 = 50 * Fixed encode URL bugs 51 = 1.2.1 = 52 * Update JWT bugs 53 = 1.2.0 = 54 * Update API settings 55 = 1.1.0 = 56 * Delete lib never used 57 = 1.0.0 = 51 58 * Initial release -
ultimate-wp-rest/trunk/ultimate_wp_rest.php
r1925325 r1929493 3 3 * Plugin Name: Ultimate WP REST 4 4 * Description: This is a plug-in for the Menus, Thumb APIs, JWT authentication, caching, and many advanced features that help you develop web and mobile applications. 5 * Version: 1.2. 15 * Version: 1.2.2 6 6 * Text Domain: wpr 7 7 * Author: EGANY … … 21 21 define('UTM_WP_REST_BASE', realpath(plugin_dir_path(__FILE__)) . DS); 22 22 define('UTM_WP_REST_URL', plugin_dir_url(__FILE__)); 23 23 24 24 25 // Initialization MVP Core
Note: See TracChangeset
for help on using the changeset viewer.