A bunch of fixes for MT 3.121
This entry introduces a bunch of fixes for Movable Type 3.121. The following is an aggregated patch for these fixes.
My intension of building this patch is just to fix *not-functioned* and *mal-functioned* features in Movable Type, and to make it work properly as possible. So, the patch does not include any function extensions or any arbitrary changes to the original version of Movable Type.
The patch details are shown below.
Perl Part
-
Two "scrollbars=yes" sentenses appear in QuickPost bookmarklet.
- lib/MT/App/CMS.pm
-
In the comment preview page generated by mt-comments.cgi, MTIfAllowCommentHTML always becomes true.
- lib/MT/App/Comments.pm
-
mt_uri is hard-coded to "mt.cgi", but it should be subjected to the name of AdminScript.
- lib/MT/App.pm
-
MTCategoryCount in a MTSubCategories container includes the count of draft and future entries.
- lib/MT/Template/Context.pm
PHP Part (Dynamic Publishing)
-
MTCalendarIfToday doesn't work.
- php/lib/block.MTCalendar.php
-
MTArchiveLink ignores archive_type option.
- php/lib/function.MTArchiveLink.php
-
Auto-Link URLs doesn't work in MTCommentBody.
- php/lib/block.MTCommentBody.php
-
<MTInclude file="filename"> requires a filename with a full path. It is preferrable that MTInclude looks for a file relative to the local site path.
- php/lib/function.MTInclude.php
-
MTRemoteSignInLink and MTRemoteSignOutLink doesn't make up with a trailing slash for CGIPath.
- php/lib/function.MTRemoteSignInLink.php
- php/lib/function.MTRemoteSignOutLink.php
-
MTRemoteSignInLink ignores "require comment emails" option.
- php/lib/function.MTRemoteSignInLink.php
-
MTEntryLink and MTPermaLink tags, whose "archive_type" options are set to Daily/Weekly/Monthly/Yearly or "Preferred Archive Type" is set to Daily/Weekly/Monthly/Yearly, output wrong URLs.
- php/lib/mtdb_base.php
-
MTEntriesWithSubCategories does not include entries in subcategories.
- php/lib/mtdb_base.php
-
MTEntries ignores the default sort_order. And when both of sort_order and recently_commented_on specified, sorting order of entries should be always "descending order" irrespective of what is specified as sort_order option.
- php/lib/mtdb_base.php
-
MTComments ignores the default sort_order.
- php/lib/block.MTComments.php
- php/lib/mtdb_base.php
-
In date-based archives, MTEntryCategory outputs wrong categories.
- php/lib/mtdb_base.php
-
convert_line_breaks rule is different from static rule, especially for <dl></dl>.
- php/lib/MTUtil.php
-
Sanitize rule "br /" does not work.
- php/lib/sanitize_lib.php