Plugin Directory

Changeset 683697


Ignore:
Timestamp:
03/18/2013 02:41:56 PM (13 years ago)
Author:
Barakud
Message:

1.1 Fixed excerpt bug

Location:
shopeat-button/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • shopeat-button/trunk/readme.txt

    r587919 r683697  
    55Requires at least: 2.0.2
    66Tested up to: 3.4.1
    7 Stable tag: 1.0
     7Stable tag: 1.1
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    3535= 1.0 =
    3636First release
     37
     38= 1.1 =
     39Excerpt bug fixed
  • shopeat-button/trunk/shopeat.php

    r587919 r683697  
    44Plugin URI: http://go.shopeat.com/category/wordpress-plugin
    55Description: This plugin allows you to implement ShopEat.com API button in any of your recipes.
    6 Version: 1.0
     6Version: 1.1
    77Author: Valentine Stoianov
    88License: GPL2
     
    318318}
    319319
     320add_filter( 'get_the_excerpt', 'shopeat_excerpt_filter', 10 );
     321
     322function shopeat_excerpt_filter( $content ) {
     323    return str_replace(array('[shopeat_button]','[/shopeat_button]','[shopeat_ingredients]','[/shopeat_ingredients]'),'',$content);
     324}
     325
    320326?>
Note: See TracChangeset for help on using the changeset viewer.