Plugin Directory

Changeset 739009


Ignore:
Timestamp:
07/11/2013 05:16:34 AM (13 years ago)
Author:
yuka2py
Message:

release ver.0.4.0

Location:
wp-over-network
Files:
1 added
1 deleted
3 edited
1 copied

Legend:

Unmodified
Added
Removed
  • wp-over-network/tags/0.4.0/WPONW_RecentPostsWidget.php

    r737504 r739009  
    5151        $transient_expires_in = isset( $instance['transient_expires_in'] ) ? absint( $instance['transient_expires_in'] ) : 0;
    5252        $post_type = isset( $instance['post_type'] ) ? $instance['post_type'] : 'post';
     53        $blog_ids = ! empty( $instance['blog_ids'] ) ? $instance['blog_ids'] : null;
     54        $exclude_blog_ids = ! empty( $instance['exclude_blog_ids'] ) ? $instance['exclude_blog_ids'] : null;
    5355
    5456        //Getting posts.
     
    5860            'transient_expires_in' => $transient_expires_in,
    5961            'post_type' => $post_type,
     62            'blog_ids' => $blog_ids,
     63            'exclude_blog_ids' => $exclude_blog_ids,
    6064        );
    6165        $getpostsargs = apply_filters( 'wponw_widget_get_posts_args', $getpostsargs );
     
    8387        $instance['transient_expires_in'] = absint( $new_instance['transient_expires_in'] );
    8488        $instance['post_type'] = trim( $new_instance['post_type'] );
     89        $instance['blog_ids'] = wponw::cleanids( $new_instance['blog_ids'] );
     90        $instance['exclude_blog_ids'] = wponw::cleanids( $new_instance['exclude_blog_ids'] );
    8591        $this->flush_widget_cache();
    8692
     
    110116        $post_type_id = $this->get_field_id( 'post_type' );
    111117        $post_type_name = $this->get_field_name( 'post_type' );
     118        $blog_ids = isset( $instance['blog_ids'] ) ? $instance['blog_ids'] : null;
     119        $blog_ids_id = $this->get_field_id( 'blog_ids' );
     120        $blog_ids_name = $this->get_field_name( 'blog_ids' );
     121        $exclude_blog_ids = isset( $instance['exclude_blog_ids'] ) ? $instance['exclude_blog_ids'] : null;
     122        $exclude_blog_ids_id = $this->get_field_id( 'exclude_blog_ids' );
     123        $exclude_blog_ids_name = $this->get_field_name( 'exclude_blog_ids' );
    112124
    113125        wponw::render( 'widget-form', compact(
     
    126138            'post_type',
    127139            'post_type_id',
    128             'post_type_name'
     140            'post_type_name',
     141            'blog_ids',
     142            'blog_ids_id',
     143            'blog_ids_name',
     144            'exclude_blog_ids',
     145            'exclude_blog_ids_id',
     146            'exclude_blog_ids_name'
    129147        ) );
    130148    }
     149
     150
    131151}
  • wp-over-network/tags/0.4.0/readme.txt

    r737585 r739009  
    55Requires at least: 3.5
    66Tested up to: 3.5.1
    7 Stable tag: 0.3.1.4
     7Stable tag: 0.4.0
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
    1010
    1111Add ability to get posts from over your network sites. Supports widget, shortcode, and customizable original function.
     12
    1213
    1314== Description ==
     
    1617
    1718Use the following:
    18 
    1919
    2020
     
    112112== Upgrade Notice ==
    113113
    114 None currently.
     114= 0.4.0 =
     115* I changed the file name, for the plug-in file management issues on.
    115116
    116117
     
    123124
    124125== Changelog ==
     126
     127= 0.4.0 =
     128* Added settings to widget
     129* Bug fix
    125130
    126131= 0.3.1.x =
Note: See TracChangeset for help on using the changeset viewer.