Changeset 2859068
- Timestamp:
- 02/02/2023 03:29:17 PM (3 years ago)
- Location:
- schema-breadcrumbs
- Files:
-
- 2 edited
-
tags/2.0.0/schema-breadcrumbs.php (modified) (1 diff)
-
trunk/schema-breadcrumbs.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
schema-breadcrumbs/tags/2.0.0/schema-breadcrumbs.php
r2859050 r2859068 238 238 } 239 239 240 add_action( 'init', 'schema_breadcrumb_shortcode' ); 241 242 function schema_breadcrumb_shortcode() { 243 add_shortcode( 'schema_breadcrumb', 'schema_breadcrumb_shortcode_func' ); 244 } 245 246 function schema_breadcrumb_shortcode_func( $atts ) { 247 ob_start(); 248 schema_breadcrumb(); 249 return ob_get_clean(); 240 if ( ! is_admin() ) { 241 add_action( 'init', 'schema_breadcrumb_shortcode' ); 242 243 function schema_breadcrumb_shortcode() { 244 add_shortcode( 'schema_breadcrumb', 'schema_breadcrumb_shortcode_func' ); 245 } 246 247 function schema_breadcrumb_shortcode_func( ) { 248 //ob_start(); 249 return schema_breadcrumb('','',false); 250 //return ob_get_clean(); 251 } 250 252 } 251 253 -
schema-breadcrumbs/trunk/schema-breadcrumbs.php
r2859047 r2859068 238 238 } 239 239 240 add_action( 'init', 'schema_breadcrumb_shortcode' ); 241 242 function schema_breadcrumb_shortcode() { 243 add_shortcode( 'schema_breadcrumb', 'schema_breadcrumb_shortcode_func' ); 244 } 245 246 function schema_breadcrumb_shortcode_func( $atts ) { 247 ob_start(); 248 schema_breadcrumb(); 249 return ob_get_clean(); 240 if ( ! is_admin() ) { 241 add_action( 'init', 'schema_breadcrumb_shortcode' ); 242 243 function schema_breadcrumb_shortcode() { 244 add_shortcode( 'schema_breadcrumb', 'schema_breadcrumb_shortcode_func' ); 245 } 246 247 function schema_breadcrumb_shortcode_func( ) { 248 //ob_start(); 249 return schema_breadcrumb('','',false); 250 //return ob_get_clean(); 251 } 250 252 } 251 253
Note: See TracChangeset
for help on using the changeset viewer.