Changeset 739009
- Timestamp:
- 07/11/2013 05:16:34 AM (13 years ago)
- Location:
- wp-over-network
- Files:
-
- 1 added
- 1 deleted
- 3 edited
- 1 copied
-
tags/0.4.0 (copied) (copied from wp-over-network/trunk)
-
tags/0.4.0/WPONW_RecentPostsWidget.php (modified) (5 diffs)
-
tags/0.4.0/readme.txt (modified) (4 diffs)
-
tags/0.4.0/screenshot-1.png (modified) (previous)
-
trunk/wp-over-network.php (added)
-
trunk/wp_over_network.php (deleted)
Legend:
- Unmodified
- Added
- Removed
-
wp-over-network/tags/0.4.0/WPONW_RecentPostsWidget.php
r737504 r739009 51 51 $transient_expires_in = isset( $instance['transient_expires_in'] ) ? absint( $instance['transient_expires_in'] ) : 0; 52 52 $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; 53 55 54 56 //Getting posts. … … 58 60 'transient_expires_in' => $transient_expires_in, 59 61 'post_type' => $post_type, 62 'blog_ids' => $blog_ids, 63 'exclude_blog_ids' => $exclude_blog_ids, 60 64 ); 61 65 $getpostsargs = apply_filters( 'wponw_widget_get_posts_args', $getpostsargs ); … … 83 87 $instance['transient_expires_in'] = absint( $new_instance['transient_expires_in'] ); 84 88 $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'] ); 85 91 $this->flush_widget_cache(); 86 92 … … 110 116 $post_type_id = $this->get_field_id( 'post_type' ); 111 117 $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' ); 112 124 113 125 wponw::render( 'widget-form', compact( … … 126 138 'post_type', 127 139 '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' 129 147 ) ); 130 148 } 149 150 131 151 } -
wp-over-network/tags/0.4.0/readme.txt
r737585 r739009 5 5 Requires at least: 3.5 6 6 Tested up to: 3.5.1 7 Stable tag: 0. 3.1.47 Stable tag: 0.4.0 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html 10 10 11 11 Add ability to get posts from over your network sites. Supports widget, shortcode, and customizable original function. 12 12 13 13 14 == Description == … … 16 17 17 18 Use the following: 18 19 19 20 20 … … 112 112 == Upgrade Notice == 113 113 114 None currently. 114 = 0.4.0 = 115 * I changed the file name, for the plug-in file management issues on. 115 116 116 117 … … 123 124 124 125 == Changelog == 126 127 = 0.4.0 = 128 * Added settings to widget 129 * Bug fix 125 130 126 131 = 0.3.1.x =
Note: See TracChangeset
for help on using the changeset viewer.