Repository navigation
Torque 0.5.3
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?notorqueto 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.phpto check the file found exists before attempting to require it, this is so that ifinstall-external.phpis 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::$optionsso 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
ABSURLwas still being used - Fixed bug in
config::__construct()where thecombinestyleandcombinescriptonsave callbacks didn't respect their respective minify flags, and so always minified when combining - Updated packages in
packages::$packagesto 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
assetsclass - Updated
installExternal::install()to only extract the/srcfolder 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 echoinstead of short tags as required by Wordpress - Updated
config::$optionsto usehtmlinstead ofdescas the key for rendering code at the top of each section - Update
htmlspecialchars()to useesc_html()as required by wordpress - Also some HTML output is now escaped with wp_kses()
- Fixed bug in
config.phpwhere the desc key had been changed tohtml, but thedesckey was required as the title tag of each tab link, descriptions have now been restored - Updated the version numbers in
readme.txtandtorque.php - Added wordpress plugin directory assets
- Updated readme's