Plugin Directory

Changeset 1730108


Ignore:
Timestamp:
09/14/2017 06:33:08 PM (8 years ago)
Author:
newsplugin.com
Message:

Fix storing user in shortcode.

Location:
newsplugin
Files:
3 edited
4 copied

Legend:

Unmodified
Added
Removed
  • newsplugin/tags/1.0.14/news-plugin-widget.php

    r1714848 r1730108  
    864864        $opts['show_abstract'] = ! empty( $new_opts['show_abstract'] ) ;
    865865        $opts['feed_mode'] = ( ! empty( $new_opts['feed_mode'] ) ) ? strip_tags( $new_opts['feed_mode'] ) : '';
    866         $opts['wp_uid'] = get_current_user_id();
     866        $opts['wp_uid'] = (!isset($new_opts['wp_uid']) || empty($new_opts['wp_uid'])) ? get_current_user_id() : $new_opts['wp_uid'];
    867867
    868868        return $opts;
  • newsplugin/tags/1.0.14/news-plugin.php

    r1714848 r1730108  
    55Description: Create custom newsfeeds for your website. Choose keywords, number of articles and other settings, put the feed wherever you want using widgets or shortcodes, and watch the fresh relevant news headlines appear on your pages (or approve and publish them manually). You can always shape the news right from your website, remove unwanted articles or star the good ones. Thanks for using the NewsPlugin, and we hope you like it.
    66Author: newsplugin.com
    7 Version: 1.0.13
     7Version: 1.0.14
    88Author URI: http://newsplugin.com/
    99*/
     
    135135          'show_source' => '',
    136136          'show_abstract' => '',
    137           'feed_mode' => ''
     137          'feed_mode' => '',
     138          'wp_uid' => ''
    138139        ), $attrs );
    139140        $newswid = new News_Plugin_Widget();
  • newsplugin/tags/1.0.14/readme.txt

    r1714848 r1730108  
    44Requires at least: 3.9
    55Tested up to: 4.8
    6 Stable tag: 1.0.13
     6Stable tag: 1.0.14
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    7272
    7373== Changelog ==
     74
     75= 1.0.14 =
     76Release Date: September 14, 2017
     77
     78* Fix storing user in shortcode
    7479
    7580= 1.0.13 =
  • newsplugin/trunk/news-plugin-widget.php

    r1714848 r1730108  
    864864        $opts['show_abstract'] = ! empty( $new_opts['show_abstract'] ) ;
    865865        $opts['feed_mode'] = ( ! empty( $new_opts['feed_mode'] ) ) ? strip_tags( $new_opts['feed_mode'] ) : '';
    866         $opts['wp_uid'] = get_current_user_id();
     866        $opts['wp_uid'] = (!isset($new_opts['wp_uid']) || empty($new_opts['wp_uid'])) ? get_current_user_id() : $new_opts['wp_uid'];
    867867
    868868        return $opts;
  • newsplugin/trunk/news-plugin.php

    r1714848 r1730108  
    55Description: Create custom newsfeeds for your website. Choose keywords, number of articles and other settings, put the feed wherever you want using widgets or shortcodes, and watch the fresh relevant news headlines appear on your pages (or approve and publish them manually). You can always shape the news right from your website, remove unwanted articles or star the good ones. Thanks for using the NewsPlugin, and we hope you like it.
    66Author: newsplugin.com
    7 Version: 1.0.13
     7Version: 1.0.14
    88Author URI: http://newsplugin.com/
    99*/
     
    135135          'show_source' => '',
    136136          'show_abstract' => '',
    137           'feed_mode' => ''
     137          'feed_mode' => '',
     138          'wp_uid' => ''
    138139        ), $attrs );
    139140        $newswid = new News_Plugin_Widget();
  • newsplugin/trunk/readme.txt

    r1714848 r1730108  
    44Requires at least: 3.9
    55Tested up to: 4.8
    6 Stable tag: 1.0.13
     6Stable tag: 1.0.14
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    7272
    7373== Changelog ==
     74
     75= 1.0.14 =
     76Release Date: September 14, 2017
     77
     78* Fix storing user in shortcode
    7479
    7580= 1.0.13 =
Note: See TracChangeset for help on using the changeset viewer.