Plugin Directory

Changeset 582548


Ignore:
Timestamp:
08/07/2012 06:06:49 AM (14 years ago)
Author:
bartee
Message:

Made the reference available to all public post types

Location:
shortcode-reference/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • shortcode-reference/trunk/conf/include.php

    r582536 r582548  
    2626function shortcode_reference_render_meta_box(){
    2727    $ShortcodeReferenceUIManager = new ShortcodeReferenceUIManager();
    28     add_meta_box('shortcode_overview_container',__('Shortcode reference','ShortcodesAutoreference'), array(&$ShortcodeReferenceUIManager,'showReferencePanel'), 'post','side');
    29     add_meta_box('shortcode_overview_container',__('Shortcode reference','ShortcodesAutoreference'), array(&$ShortcodeReferenceUIManager,'showReferencePanel'), 'page','side');
    30     add_meta_box('shortcode_overview_container',__('Shortcode reference','ShortcodesAutoreference'), array(&$ShortcodeReferenceUIManager,'showReferencePanel'), 'link','side');
     28    foreach (get_post_types( array('public' => true) ) as $posttype){
     29        add_meta_box('shortcode_overview_container',__('Shortcode reference','ShortcodesAutoreference'), array(&$ShortcodeReferenceUIManager,'showReferencePanel'), $posttype, 'side');
     30    }
    3131}
    3232
  • shortcode-reference/trunk/readme.txt

    r582536 r582548  
    88
    99This plugin will provide a list and details about available shortcodes in your current installment. All when you need it most.
    10 When editing your content.
     10When editing your content. 
     11
    1112
    1213== Description ==
     
    4344
    4445== Changelog ==
     46= 0.3 =
     47* Added reference box to all public post types.
     48
    4549= 0.2 =
    4650* Changed resolving of the plugin's css/js files
Note: See TracChangeset for help on using the changeset viewer.