Plugin Directory

Changeset 849451


Ignore:
Timestamp:
02/01/2014 04:05:55 PM (12 years ago)
Author:
hberberoglu
Message:

version bump

Location:
wp-favorite-posts/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • wp-favorite-posts/trunk/readme.txt

    r834497 r849451  
    66Requires at least: 3.5
    77Tested up to: 3.8
    8 Stable tag: 1.6.0
     8Stable tag: 1.6.1
    99
    1010Allows visitors to add favorite posts. This plugin use cookies for saving data so
     
    5353== Changelog ==
    5454
     55= 1.6.1 (2014-02-01) =
     56* Fixed: not loggedin user were able to add favorite even if "only registered users can favorite" option true.
     57
    5558= 1.5.9.1 (2014-01-07) =
    5659* Fix php warnings and deprecated thing.
  • wp-favorite-posts/trunk/wp-favorite-posts.php

    r834497 r849451  
    44Plugin URI: http://nxsn.com/my-projects/wp-favorite-posts-plugin/
    55Description: Allows users to add favorite posts. This plugin use cookies for saving data so unregistered users can favorite a post. Put <code>&lt;?php wpfp_link(); ?&gt;</code> where ever you want on a single post. Then create a page which includes that text : <code>[wp-favorite-posts]</code> That's it!
    6 Version: 1.6.0
     6Version: 1.6.1
    77Author: Huseyin Berberoglu
    88Author URI: http://nxsn.com
     
    5757function wpfp_add_favorite($post_id = "") {
    5858    if ( empty($post_id) ) $post_id = $_REQUEST['postid'];
    59     if (wpfp_get_option('opt_only_registered') && !is_user_logged_in() )
     59    if (wpfp_get_option('opt_only_registered') && !is_user_logged_in() ) {
    6060        wpfp_die_or_go(wpfp_get_option('text_only_registered') );
     61        return false;
     62    }
    6163
    6264    if (wpfp_do_add_to_list($post_id)) {
Note: See TracChangeset for help on using the changeset viewer.