Plugin Directory

Changeset 1912452


Ignore:
Timestamp:
07/20/2018 05:16:59 PM (8 years ago)
Author:
Nitay
Message:

fix trash notices in the log files, thanks Svetoslav Marinov

Location:
sponsors-carousel/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • sponsors-carousel/trunk/class-sponsors-carousel.php

    r1848636 r1912452  
    106106        }
    107107        update_option( 'sponsors-carousel-' . $this->id, serialize( $this ) );
     108        return TRUE;
    108109    }
    109110
     
    282283            if ( $link  <> '' ) {
    283284                $output .= '<li><a ' . ( $this->target ? ' target="_blank" ' : '' );
    284                 $output .= ' id="sponsors_carousel_item-"' . $i .  '" href="' . $link . '" class="jcarousel-item">';
     285                $output .= ' href="' . $link . '" class="jcarousel-item">';
    285286                $output .= '<img src="' . $img['src'] . '" ' . ( $this->showtitles ? ( ' title="' . $img['title'] . '"' ) : '' ) . '>';
    286287                $output .= '</a></li>';
  • sponsors-carousel/trunk/readme.txt

    r1882442 r1912452  
    6464* 3.03: fix continuous scrolling, thanks @fptech
    6565* 3.04: fix bug "Featured Image not working with this plugin", thanks @vescovo
     66* 3.05: fix trash notices in the log files, thanks Svetoslav Marinov
  • sponsors-carousel/trunk/sponsors-carousel.php

    r1882442 r1912452  
    2727*/
    2828
    29 define("SPONSORS_CAROUSEL_VERSION", "3.0.4");
     29define("SPONSORS_CAROUSEL_VERSION", "3.0.5");
    3030
    3131include_once("class-sponsors-carousel.php");
     
    8686
    8787    if ( isset( $_POST['save'] ) ) { // Update options
    88         $sponsors_carousel = new SponsorsCarousel( $id );
     88        $sponsors_carousel = new SponsorsCarousel();
    8989        if ( $sponsors_carousel->update( $_POST ) ) {
    9090            echo "<div class='updated fade'><p><strong>" . __( 'Options updated', 'sponsors-carousel' ) . "</strong></p></div>";
Note: See TracChangeset for help on using the changeset viewer.