Changeset 2795
- Timestamp:
- 03/24/2016 10:20:26 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/branches/application-tracking/wordcamp.org/public_html/wp-content/plugins/wcpt/applications/tracker.php
r2786 r2795 4 4 defined( 'WPINC' ) or die(); 5 5 6 add_shortcode( 'application-tracker', __NAMESPACE__ . '\render_status_shortcode' ); 7 add_action( 'wp_print_styles', __NAMESPACE__ . '\print_shortcode_styles' ); 6 const SHORTCODE_SLUG = 'application-tracker'; 7 8 add_shortcode( SHORTCODE_SLUG, __NAMESPACE__ . '\render_status_shortcode' ); 9 add_action( 'wp_print_styles', __NAMESPACE__ . '\print_shortcode_styles' ); 8 10 9 11 /** … … 46 48 */ 47 49 function print_shortcode_styles() { 48 // todo if doesn't have shortcode, return 50 global $post; 51 52 if ( empty( $post->post_content ) || ! has_shortcode( $post->post_content, SHORTCODE_SLUG ) ) { 53 return; 54 } 49 55 50 56 ?>
Note: See TracChangeset
for help on using the changeset viewer.