Table of Content
Update: There will be some error messages appear inside the
<textarea> element when you want to create a new shield. My mistake. Sorry. To solve this problem, please replace the content of the
manager\workers\route.shield.php file with this commit.
We jumped a lot and now we are at version
1.1.0. There are a lot of changes. Before you decide to upgrade, please consider to read this article carefully. For regular users, you may notice the difference between this version from the previous version through the new features were added to the CMS: the comment moderation feature and the ability to make a draft post.
Guardian::makeToken()is now deprecated. Please use
Guardian::token()or simply use the
Asset::script()is also deprecated. Please use
Namefield of the shield’s about file is now changed into
Titlefield, following the plugin’s about file pattern. This change will broke the shield manager page, so if you already using a custom shield, please replace the
Titlefield, or simply delete the
Title: Your Custom Shield Name Author: Your Name URL: http://example.com Version: 1.0.0 ==== Description about your custom shield.
Every piece of the site data will have their own specific variable name. Open your
index.phpfile of your active shield and then replace this line:
<?php foreach($pages as $article): ?>
<?php foreach($articles as $article): ?>
footer.phpfile(s). Each part will be injected automatically into the
This is considered as a valid
<!DOCTYPE html> <html> <head> <?php Weapon::fire('SHIPMENT_REGION_TOP'); ?> <?php Weapon::fire('shell_before'); ?> <?php echo Asset::stylesheet('foo/bar/baz.css'); ?> <?php Weapon::fire('shell_after'); ?> </head> <body>
For more information about the shield changes, please refer to the Shield article.
There are also some changes in the function and filter hook names.
beforefunction hook changed into
afterfunction hook changed into
before_launchfunction hook changed into
after_launchfunction hook changed into
before_sanitizedfilter hook changed into
after_sanitizedfilter hook changed into
- Your old plugins will not work properly in this version. Mostly because this new version of Mecha will automatically merge the plugin language parts into
Config::speak(). If the plugin language parts merged twice, then the merged language parts will mess up the plugin language array. To fix this, simply remove your old plugins, and then replace it with the new released plugins. Some of them may not yet available, but it will be available soon. If your plugin has some important data stored, for example, the URL redirection plugin, you may want to download the plugin data first before deleting the whole plugin through the cPanel. For URL redirection plugin, the most important data to be downloaded is the
- Fixed query string URL in
$config->url_currentthat was not removed properly.
- Behaviour changes in
Get::comments()will only return the file path. To get more detailed data of the comment files without reading the content, use
- Fixed broken blog sitemap.
- Fixed broken backup/restore feature.
- Fixed broken
Filterclass which cannot create filter stacks with the same priority.
- Users now can block commenters by their IP address.