Linux 软件免费装

Trac Ticket Shortcode

开发者 frederick.ding
freddyware
更新时间 2013年6月14日 08:44
PHP版本: 3.0 及以上
WordPress版本: 3.5.1
版权: GPLv2 or later
版权网址: 版权信息

标签

shortcode link ticket bug Trac

下载

0.1

详情介绍:

Links directly to a ticket ("bug") on a Trac site using simple notation such as [bug 12345]. By default, this plugin is coded to link to the WordPress core Trac. Generates output such as <a href="http://core.trac.wordpress.org/ticket/100" title="WordPress Trac: Ticket #100: Support for a "keywords" field">#100</a> The plugin will fetch the ticket title when a shortcode is first displayed; the ticket title is displayed in the title attribute of the link. The plugin caches titles in custom fields with the posts in which shortcodes are used, to minimize unnecessary computation. Constants can also be set in wp-config.php to change the shortcode name and to switch to a different Trac site. See Installation.

安装:

Self-explanatory, like most plugins. This plugin can also be used as a must-use plugin by placing trac-ticket-shortcode.php into the wp-content/mu-plugins directory. How to use constants The Trac site that the plugin links to can be overridden by defining TRAC_TICKET_URL as the absolute URL to the root of the Trac site. Put a line like this into wp-config.php: define('TRAC_TICKET_URL', 'http://plugins.trac.wordpress.org/'); to use the plugin site. The name of the shortcode can be customized (within reason -- i.e. lowercase alphabetical characters and underscores) by defining TRAC_TICKET_SHORTCODE. The default shortcode is [bug] but other reasonable names might include [ticket]: define('TRAC_TICKET_SHORTCODE', 'ticket'); (Whatever string is supplied will be lowercased. Only alphanumeric characters and the underscore will remain. For example, if you define TRAC_TICKET_SHORTCODE as ticket-#, the shortcode will actually be hooked for ticket.) Note that changing either of these constants will affect all shortcodes.

更新日志:

0.1