Changeset 543991
- Timestamp:
- 05/14/2012 08:05:31 AM (14 years ago)
- Location:
- smart-wysiwyg-blocks-of-content
- Files:
-
- 10 added
- 4 edited
-
tags/0.6 (added)
-
tags/0.6/includes (added)
-
tags/0.6/includes/class-swboc-admin.php (added)
-
tags/0.6/includes/class-swboc-common.php (added)
-
tags/0.6/includes/class-swboc-front.php (added)
-
tags/0.6/includes/class-swboc-widget.php (added)
-
tags/0.6/readme.txt (added)
-
tags/0.6/screenshot-1.png (added)
-
tags/0.6/screenshot-2.png (added)
-
tags/0.6/smart-wysiwyg-blocks-of-content.php (added)
-
trunk/includes/class-swboc-front.php (modified) (1 diff)
-
trunk/includes/class-swboc-widget.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/smart-wysiwyg-blocks-of-content.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
smart-wysiwyg-blocks-of-content/trunk/includes/class-swboc-front.php
r511162 r543991 29 29 $swboc_posts = get_posts( $args ); 30 30 31 remove_filter( 'the_content', 'prepend_attachment' ); 32 31 33 foreach ( $swboc_posts as $post ) { 32 34 $content .= apply_filters( 'the_content', $post->post_content ); 33 35 } 36 37 add_filter( 'the_content', 'prepend_attachment' ); 34 38 } 35 39 -
smart-wysiwyg-blocks-of-content/trunk/includes/class-swboc-widget.php
r511162 r543991 14 14 $swboc_title = esc_attr( $instance[ 'title' ] ); 15 15 16 echo $before_title . $swboc_title . $after_title; 16 if ( ! empty( $swboc_title ) ) 17 echo $before_title . $swboc_title . $after_title; 17 18 18 19 $args = array ( … … 22 23 23 24 $swboc_posts = get_posts( $args ); 25 26 remove_filter( 'the_content', 'prepend_attachment' ); 24 27 25 28 foreach ( $swboc_posts as $post ) { 26 29 echo apply_filters( 'the_content', $post->post_content ); 27 30 } 31 32 add_filter( 'the_content', 'prepend_attachment' ); 28 33 29 34 echo $after_widget; -
smart-wysiwyg-blocks-of-content/trunk/readme.txt
r511165 r543991 4 4 Tags: wysiwyg, widgets 5 5 Requires at least: 3.0 6 Tested up to: 3. 3.17 Stable tag: 0. 5.26 Tested up to: 3.4 7 Stable tag: 0.6 8 8 9 9 Adds a custom post type that can be easily inserted at multiple spots, including widgets. Easy way to create WYSIWYG widgets. … … 29 29 30 30 == Changelog == 31 32 = 0.6 = 33 * Do not show widget title if title is empty. 34 * Temporarely disable prepend_attachment filter to prevent strange output. 31 35 32 36 = 0.5.2 = -
smart-wysiwyg-blocks-of-content/trunk/smart-wysiwyg-blocks-of-content.php
r511162 r543991 5 5 Description: Adds a custom post type that can be easily inserted at multiple spots, including widgets. Easy way to create WYSIWYG widgets. 6 6 Author: Coen Jacobs 7 Version: 0. 5.27 Version: 0.6 8 8 Author URI: http://cnjcbs.com 9 9 */ … … 17 17 } 18 18 19 ?> 19 ?>?>
Note: See TracChangeset
for help on using the changeset viewer.