Plugin Directory

Changeset 2859068


Ignore:
Timestamp:
02/02/2023 03:29:17 PM (3 years ago)
Author:
deano1987
Message:

nnnfhgdfg

Location:
schema-breadcrumbs
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • schema-breadcrumbs/tags/2.0.0/schema-breadcrumbs.php

    r2859050 r2859068  
    238238}
    239239
    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();
     240if ( ! 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    }
    250252}
    251253
  • schema-breadcrumbs/trunk/schema-breadcrumbs.php

    r2859047 r2859068  
    238238}
    239239
    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();
     240if ( ! 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    }
    250252}
    251253
Note: See TracChangeset for help on using the changeset viewer.