{"id":23702,"date":"2013-06-04T01:33:18","date_gmt":"2013-06-04T01:33:18","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/trac-ticket-shortcode\/"},"modified":"2013-06-04T02:06:44","modified_gmt":"2013-06-04T02:06:44","slug":"trac-ticket-shortcode","status":"closed","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/trac-ticket-shortcode\/","author":278387,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"0.1","stable_tag":"0.1","tested":"3.5.2","requires":"3.0","requires_php":"","requires_plugins":"","header_name":"Trac Ticket Shortcode","header_author":"Frederick Ding","header_description":"","assets_banners_color":"","last_updated":"2013-06-04 02:06:44","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"","header_author_uri":"http:\/\/www.frederickding.com\/","rating":0,"author_block_rating":0,"active_installs":0,"downloads":831,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","changelog"],"tags":[],"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":0},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["0.1"],"block_files":[],"assets_screenshots":[],"screenshots":[]},"plugin_section":[],"plugin_tags":[5964,537,80,4773,61442],"plugin_category":[43,58],"plugin_contributors":[],"plugin_business_model":[],"class_list":["post-23702","plugin","type-plugin","status-closed","hentry","plugin_tags-bug","plugin_tags-link","plugin_tags-shortcode","plugin_tags-ticket","plugin_tags-trac","plugin_category-customization","plugin_category-user-management","plugin_committers-freddyware","plugin_committers-frederickding"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/trac-ticket-shortcode.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p>Links directly to a ticket (\"bug\") on a Trac site using simple notation such as <code>[bug 12345]<\/code>. By default, this plugin is coded to link to the WordPress core Trac.<\/p>\n <p>Generates output such as \n    <a href=\"http:\/\/core.trac.wordpress.org\/ticket\/100\" title=\"WordPress Trac: Ticket #100: Support for a &quot;keywords&quot; field\">#100<\/a><\/p>\n <p>The plugin will fetch the ticket title when a shortcode is first displayed; the ticket title is displayed in the <code>title<\/code> attribute of the link. The plugin caches titles in custom fields with the posts in which shortcodes are used, to minimize unnecessary computation.<\/p>\n <p>Constants can also be set in <code>wp-config.php<\/code> to change the shortcode name and to switch to a different Trac site. See <em>Installation<\/em>.<\/p>\n\n<!--section=installation-->\n<p>Self-explanatory, like most plugins.<\/p>\n <p>This plugin can also be used as a must-use plugin by placing <code>trac-ticket-shortcode.php<\/code> into the <code>wp-content\/mu-plugins<\/code> directory.<\/p>\n <h4>How to use constants<\/h4>\n <p>The Trac site that the plugin links to can be overridden by defining <code>TRAC_TICKET_URL<\/code> as the absolute URL to the root of the Trac site. Put a line like this into <code>wp-config.php<\/code>:     define('TRAC_TICKET_URL', 'http:\/\/plugins.trac.wordpress.org\/'); to use the plugin site.<\/p>\n <p>The name of the shortcode can be customized (within reason -- i.e. lowercase alphabetical characters and underscores) by defining <code>TRAC_TICKET_SHORTCODE<\/code>. The default shortcode is <code>[bug]<\/code> but other reasonable names might include <code>[ticket]<\/code>:     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 <code>TRAC_TICKET_SHORTCODE<\/code> as <code>ticket-#<\/code>, the shortcode will actually be hooked for <code>ticket<\/code>.)<\/p>\n <p>Note that changing either of these constants will affect <strong>all<\/strong> shortcodes.<\/p>\n\n<!--section=changelog-->\n<h4>0.1<\/h4>\n <ul>\n<li>Initial release<\/li>\n<li>Customizable shortcode name and Trac location<\/li>\n<\/ul>","raw_excerpt":"Links directly to a ticket (&quot;bug&quot;) on a Trac site.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/23702","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=23702"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/freddyware"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=23702"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=23702"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=23702"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=23702"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=23702"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=23702"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}