Plugin Directory

Changeset 1929493


Ignore:
Timestamp:
08/24/2018 04:59:05 AM (8 years ago)
Author:
egany
Message:

v1.2.2 Fixed encode URL bugs

Location:
ultimate-wp-rest/trunk
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • ultimate-wp-rest/trunk/admin/assets/css/materialize.custom.css

    r1925325 r1929493  
    100100.tabs .tab a:focus,
    101101.tabs .tab a:focus.active {
    102   background-color: rgba(255, 255, 255, 0.7);
     102  background-color: #fff;
    103103  outline: none;
    104104}
  • ultimate-wp-rest/trunk/includes/plugin-module-cache.php

    r1925325 r1929493  
    9090      }
    9191
    92       bdump($arguments, $function);
     92      //bdump($arguments, $function);
    9393
    9494      if ($this->memory !== false) {
    9595        $result = $this->memory->$function(...$arguments);
    96         bdump($result, 'memory');
     96        //bdump($result, 'memory');
    9797      }
    9898
    9999      if ($this->memcached !== false && ($result === null || $function === 'save')) {
    100100        $result = $this->memcached->$function(...$arguments);
    101         bdump($result, 'memcached');
     101        //bdump($result, 'memcached');
    102102      }
    103103
    104104      if ($this->file !== false && ($result === null || $function === 'save')) {
    105105        $result = $this->file->$function(...$arguments);
    106         bdump($result, 'file');
     106        //bdump($result, 'file');
    107107      }
    108108
  • ultimate-wp-rest/trunk/includes/plugin-module-rest-api.php

    r1925325 r1929493  
    3434    // Auth by Nonce
    3535    if (UTM_WP_REST_API_AUTH_MODE === 'nonce') {
     36      if (!function_exists('wp_create_nonce')) {
     37        require_once ABSPATH . "wp-includes/pluggable.php";
     38      }
    3639      define('UTM_WP_REST_API_NONCE', wp_create_nonce('wp_rest'));
    3740    }
  • ultimate-wp-rest/trunk/includes/plugin-module-setting.php

    r1925325 r1929493  
    2020  public function registerDebugger($bForce = false) {
    2121    if (!function_exists('wp_get_current_user')) {
    22       include ABSPATH . "wp-includes/pluggable.php";
     22      require_once ABSPATH . "wp-includes/pluggable.php";
    2323    }
    2424
     
    360360  ///////////// Register All Scripts/Styles /////////////
    361361  public function registerAllScripts() {
    362 
    363     // Filter URL script
    364     add_filter('clean_url', [$this->PWP->tool, 'parseURLScripts'], 11, 1);
    365 
    366362    wp_register_script(UTM_WP_REST_TEXTDOMAIN . '-materialize', UTM_WP_REST_URL . 'admin/assets/js/materialize.min.js', ['jquery'], false, true);
    367363    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  
    156156  }
    157157
    158   // Async load
    159   public function parseURLScripts($sURL) {
    160     // Get all #[setting] in url
    161     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 URL
    178     if ($sAttr !== '') {
    179       $sURL = trim($aMatch[1][0] . "' $sAttr");
    180 
    181       // Remove quote
    182       if (substr($sURL, -1) === "'") {
    183         $sURL = substr($sURL, 0, -1);
    184       }
    185     }
    186 
    187     return $sURL;
    188   }
    189 
    190158  public function arraySearchRecursive($mFind, $aData, $bOnlyParent = false, $sKeyParent = 0) {
    191159    foreach ($aData as $sKey => $nValue) {
  • ultimate-wp-rest/trunk/readme.txt

    r1925623 r1929493  
    4747 
    4848== 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 =
    5158* Initial release
  • ultimate-wp-rest/trunk/ultimate_wp_rest.php

    r1925325 r1929493  
    33 * Plugin Name: Ultimate WP REST
    44 * 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.1
     5 * Version: 1.2.2
    66 * Text Domain: wpr
    77 * Author: EGANY
     
    2121define('UTM_WP_REST_BASE', realpath(plugin_dir_path(__FILE__)) . DS);
    2222define('UTM_WP_REST_URL', plugin_dir_url(__FILE__));
     23
    2324
    2425// Initialization MVP Core
Note: See TracChangeset for help on using the changeset viewer.