Plugin Directory

Changeset 2243931


Ignore:
Timestamp:
02/13/2020 02:34:24 PM (6 years ago)
Author:
cscode
Message:

Quick [fix] Gutenberg editor throws an error

Location:
wc-products-slider
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • wc-products-slider/trunk/public/class-wcps-public.php

    r2243904 r2243931  
    118118
    119119    $cateories = wcpsGetCategory($slide['limit']);
    120 
     120    ob_start();
    121121    if($slide['style'] == 1){
    122122        wcps_slider_1($cateories);
     
    126126        wcps_slider_3($cateories);
    127127    }
     128    return ob_get_clean();
    128129}
    129130 
    130131function wcps_slider_1($cateories){
    131     // ob_start();
     132    ob_start();
    132133    ?>
    133134
     
    146147            </div>
    147148    <?php
    148    // $object = ob_get_clean();
     149    //$object = ob_get_clean();
    149150   // return $object;
    150151}
    151152function wcps_slider_2($cateories){
    152     // ob_start(); 
    153     ?>
     153    ?>
    154154        <div class="container">
    155155            <section id="wcps_slider_2" class="dg-container">
     
    170170        </div>
    171171    <?php
    172      // $object = ob_get_clean();
    173      // return $object;
    174 }
     172 }
    175173function wcps_slider_3($cateories){
    176     // ob_start(); 
    177     ?>
     174    ?>
    178175
    179176        <div class="container">
     
    194191        </div>
    195192    <?php
    196      // $object = ob_get_clean();
    197      // return $object;
    198 }
     193 }
    199194
    200195function wcpsGetCategory(){
Note: See TracChangeset for help on using the changeset viewer.