Drupal 7.40 发布
Drupal中国公告:2015年10月15日上午7:37 在Drupal官网发布公告,Drupal 7.40 发布。
Drupal官网公告中介绍:这是Drupal7.x的例行版本更新。本次包括一些bug修复及少量 API/功能 改进(并非主要功能大变动);大功能及非向后兼容的新功能会加到Drupal 8.0版本里。
该版本不包含安全问题更新。
除了文档修复,web.config、robots.txt 及settings.php 这些文件没有变动,因此本次升级这些文件无需备份。
这一版本中.htaccess文件有变动:
- 一个改动是在适当的时候设置“X-Content-Type-Options”header为“nosniff”,用来阻止某些Web浏览器获取不安全的MIME类型(请看 #462950)。
强烈推荐更新已有的站点的 .htaccess 文件。
这一版本中settings.php文件有2处变动:
- 一个变动是从“404_fast_paths”表现(behavior)中排除私有文件。这个主要是对那些需要从settings.php中调用drupal_fast_404()的站点有用(请看 #2455057)。
- 另一个是文档的变动,主要是帮助开发站点可以更方便通过settings.php开启“theme_debug”的功能(请看 #2538640)。
推荐更新已有的站点的 settings.php文件, 但并非必须。
已知问题:
无。
本次更新包括:
- Added an optional 'project:' prefix that can be added to dependencies in a module's .info file to indicate which project the dependency resides in (API addition: https://www.drupal.org/node/2299747).
- Prevented the database API from executing multiple queries at once on MySQL, if the site's PHP version is new enough to do so. This is a secondary defense against SQL injection (API change: https://www.drupal.org/node/2463973).
- Changed the default thousand marker for numeric fields from a space ("1 000") to nothing ("1000") (minor UI change: https://www.drupal.org/node/1388376).
- Made Drupal's code for parsing .info files run much faster and use much less memory.
- Prevented drupal_http_request() from returning an error when it receives a 201 through 206 HTTP status code.
- Added support for autoloading traits via the registry on sites running PHP 5.4 or higher.
- Allowed the user-picture.tpl.php theme template to have HTML classes besides the default "user-picture" class printed in it (markup change).
- Fixed the URL text filter to convert e-mail addresses with plus signs into mailto: links.
- Added alternate text to file icons displayed by the File module, to improve accessibility (string change, and minor API addition to theme_file_icon()).
- Changed one-time login link failure messages to be displayed as errors or warnings as appropriate, rather than as regular status messages (minor UI change and data structure change).
- Changed the default settings.php configuration to exclude private files from the "404_fast_paths" behavior.
- Changed the page that displays filter tips for a particular text format, for example filter/tips/full_html, to return "page not found" or "access denied" if the format does not exist or the user does not have access to it. This change adds a new menu item to the Filter module's hook_menu() entry (minor data structure change).
- Added a new hook, hook_block_cid_parts_alter(), to allow modules to alter the cache keys used for caching a particular block.
- Made drupal_set_message() display and return messages when "0" is passed in as the message to set.
- Fixed non-functional "Files displayed by default" setting on file fields.
- The "worker callback" provided in hook_cron_queue_info() and the "finished" callback specified during batch processing can now be any PHP callable instead of just functions.
- Prevented drupal_set_time_limit() from decreasing the time limit in the case where the PHP maximum execution time is already unlimited.
- Prevented malformed theme .info files (without a "name" key) from causing exceptions during menu rebuilds. If an .info file without a "name" key is found in a module or theme directory, Drupal will now use the module or theme's machine name as the display name instead.
- Made the format column in the {date_format_locale} database table case-sensitive, to match the equivalent column in the {date_formats} table.
- Fixed a bug in the Statistics module that caused JavaScript files attached to a node while it is being viewed to be omitted from the page.
- Fixed various bugs that occurred after hooks were invoked early in the Drupal bootstrap and that caused module_implements() and drupal_alter() to cache an incomplete set of hook implementations for later use.
- Set the X-Content-Type-Options header to "nosniff" when possible, to prevent certain web browsers from picking an unsafe MIME type.
- Fixed a bug in the Drupal 6 to Drupal 7 upgrade path which caused the upgrade to fail when there were multiple file records pointing to the same file.
可以到 Drupal 7.40版本修改日志里查看具体细节。
官网强烈建议升级您的Drupal站点至drupal7最新版本。
修改日志:
下载Drupal:
文章分类