Skip to content

Torque 0.5.3

Choose a tag to compare

@hexydec hexydec released this 10 Sep 23:00
· 45 commits to master since this release

This release fixes a load of bugs, improves stability, and updates the code for acceptance into the Wordpress plugin store:

  • Added docblocks to all classes and methods
  • Fixed bug in assets::getPage() where a variable was overwritten for another use
  • Qualified all root method calls
  • assets::getPageAssets() now no longer adds ?notorque to the querystring, this is done from the call
  • Fixed issue in assets::getStylesheetAssets() where it should return false instead of null where the assets could not be retrieved or there were no assets
  • Updated autoload.php to check the file found exists before attempting to require it, this is so that if install-external.php is not present as per the Wordpress hosted plugin, it won't crash
  • Renamed the "Headers" tab to "Caching" in config::$options
  • Removed unused array entries from overview::$config
  • Fixed issues with asset badges in overview::__construct() where the variable was not checked to see if it is not falsey
  • Fixed layout of multiselect boxes to make them wider in admin::draw()
  • Fixed bug in app::optimise() where if the user wasn't logged in, even if the CSP setting was disabled, it wrote the header. It now converts the userID to a string before comparison
  • Removed usage of ABSPATH, as it can be manipulated in user code, and may not be reliable
  • Fixed bug in assets::getPageAssets() where if the URL didn't have a querystring, it caused the code to fail
  • Fixed bug in assets::getPageAssets() where external URLs were still processed
  • Fixed issue in assets::getPageAssets() where the assets were not ordered by type
  • Fixed bugs in assets::getStylesheetAssets() where assets that were quoted were not captured, and assets that do not exist on the filesystem caused a blank capture
  • Fixed configuration items in config::$options so that the default is to not be on so that sites run pretty much as they are when the plugin is activated
  • Fixed bugs in overview::__construct() where the callbacks that generate a list of files didn't check whether the files existed before getting the filesize
  • Fixed issue in overview::draw() where if the first page request came back uncompressed, it still made a second request for the uncompressed page
  • Fixed bug in assets::getStylesheetAssets() where absolutely referenced assets were not handled correctly
  • Fixed issue where ABSURL was still being used
  • Fixed bug in config::__construct() where the combinestyle and combinescript onsave callbacks didn't respect their respective minify flags, and so always minified when combining
  • Updated packages in packages::$packages to reference master as this has the latest bug fixes
  • All inline scripts are not moved to the bottom when scripts are combined in app::optimise()
  • Fixed bug in assets::getPageAssets() where sorting the assets could cause the order to be incorrect, they are not grouped by type before flattening
  • Moved code that builds the CSS and Javascript files to the assets class
  • Updated installExternal::install() to only extract the /src folder so that only the required code is stored in the package folder, and non of the documentation or tests etc
  • Reworked packages definition and autoloader to specify what to extract and where
  • Updated admin::draw() to use <?php echo instead of short tags as required by Wordpress
  • Updated config::$options to use html instead of desc as the key for rendering code at the top of each section
  • Update htmlspecialchars() to use esc_html() as required by wordpress
  • Also some HTML output is now escaped with wp_kses()
  • Fixed bug in config.php where the desc key had been changed to html, but the desc key was required as the title tag of each tab link, descriptions have now been restored
  • Updated the version numbers in readme.txt and torque.php
  • Added wordpress plugin directory assets
  • Updated readme's