Changeset 219890
- Timestamp:
- 03/20/2010 01:24:32 PM (16 years ago)
- Location:
- blog-in-blog
- Files:
-
- 6 edited
- 7 copied
-
tags/0.9.9.1 (copied) (copied from blog-in-blog/trunk)
-
tags/0.9.9.1/bib_post_template.tpl (modified) (1 diff)
-
tags/0.9.9.1/blog-in-blog-be_BY.mo (copied) (copied from blog-in-blog/trunk/blog-in-blog-be_BY.mo)
-
tags/0.9.9.1/blog-in-blog-be_BY.po (copied) (copied from blog-in-blog/trunk/blog-in-blog-be_BY.po)
-
tags/0.9.9.1/blog-in-blog-nl.mo (copied) (copied from blog-in-blog/trunk/blog-in-blog-nl.mo)
-
tags/0.9.9.1/blog-in-blog-nl.po (copied) (copied from blog-in-blog/trunk/blog-in-blog-nl.po)
-
tags/0.9.9.1/blog-in-blog.php (modified) (6 diffs)
-
tags/0.9.9.1/blog-in-blog.pot (copied) (copied from blog-in-blog/trunk/blog-in-blog.pot)
-
tags/0.9.9.1/options.php (copied) (copied from blog-in-blog/trunk/options.php)
-
tags/0.9.9.1/readme.txt (modified) (2 diffs)
-
trunk/bib_post_template.tpl (modified) (1 diff)
-
trunk/blog-in-blog.php (modified) (6 diffs)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
blog-in-blog/tags/0.9.9.1/bib_post_template.tpl
r218488 r219890 1 <!--fragment of html for post template blog-in-blog Version: 0.9.9 -->1 <!--fragment of html for post template blog-in-blog Version: 0.9.9.1 --> 2 2 <div class="post"> 3 3 <!-- Post Headline --> -
blog-in-blog/tags/0.9.9.1/blog-in-blog.php
r218488 r219890 5 5 Plugin URI: http://informationtakesover.co.uk/blog-in-blog-wordpress-plugin/ 6 6 Description: Create a blog within a blog using a category. This plugin basically shows posts in a category on a page using shortcodes. 7 Version: 0.9.9 7 Version: 0.9.9.1 8 8 Author: Tim Hodson 9 9 Author URI: http://timhodson.com … … 34 34 include_once( WP_PLUGIN_DIR."/blog-in-blog/options.php" ); 35 35 36 37 38 36 $plugin_dir = basename(dirname(__FILE__)); 39 37 load_plugin_textdomain( 'blog-in-blog', 'wp-content/plugins/' . $plugin_dir, $plugin_dir ); 40 38 39 #global $BIB_RUN ; 40 #if ($BIB_RUN != 1) { $BIB_RUN=0; } 41 #echo $BUB_RUN; 41 42 42 43 function blog_in_blog_func($atts) { 43 44 global $blog_in_blog_opts; 44 45 global $wp_query; 45 46 47 // prevent infinite loops... 48 // now that we have started our first blog-in-blog processing, we make sure that we don't do it again. 49 remove_shortcode('blog_in_blog'); 50 // we also now make sure the shortcode text is removed from the post content by other plugins. 51 add_filter( 'the_content', 'bib_remove_shortcode' ) ; 52 46 53 extract(shortcode_atts(array ( 47 54 'category_id' => '1', … … 117 124 $data['post_author_avatar'] = get_avatar( $post->post_author , $blog_in_blog_opts['bib_avatar_size'] ); 118 125 119 #$data['post_content'] = apply_filters('the_content', $post->post_content);120 $data['post_content'] = $post->post_content;121 122 #$data['post_excerpt'] = apply_filters('the_excerpt', bib_process_excerpt($post) );123 $data['post_excerpt'] = bib_process_excerpt($post) ;126 $data['post_content'] = apply_filters('the_content', $post->post_content); 127 #$data['post_content'] = $post->post_content; 128 129 $data['post_excerpt'] = apply_filters('the_excerpt', bib_process_excerpt($post) ); 130 #$data['post_excerpt'] = bib_process_excerpt($post) ; 124 131 125 132 $data['post_permalink'] = get_permalink($post); … … 150 157 } 151 158 159 #$BIB_RUN = 1; 160 152 161 // return the posts data. 153 162 return $out; 154 163 } 155 164 add_shortcode('blog_in_blog', 'blog_in_blog_func'); 165 166 167 /** 168 * Filter to remove the shortcode to prevent display after other functions have applied the_content filter 169 */ 170 171 function bib_remove_shortcode($content=''){ 172 $content = preg_replace("/\[blog_in_blog.*\]/","",$content); 173 //echo "The Content from bib_remove_shortcode:(".$content.")"; 174 return $content; 175 } 176 177 156 178 157 179 /** … … 389 411 return $out; 390 412 } 413 414 391 415 /** 392 416 * Page navi … … 528 552 } 529 553 554 530 555 function bib_get_post_count() { 531 556 global $wpdb; -
blog-in-blog/tags/0.9.9.1/readme.txt
r218488 r219890 5 5 Requires at least: 2.7.1 6 6 Tested up to: 2.9.2 7 Stable tag: 0.9.9 7 Stable tag: 0.9.9.1 8 8 9 9 Create a blog within a blog using a category. This plugin basically shows posts in a category on a page using shortcodes. … … 101 101 == Changelog == 102 102 103 = 0.9.9.1 = 104 Tried a different fix for `apply_fiters()` issues. Basically other plugins and themes were calling `the_content` and attempting to reapply the blog-in-blog shortcode, causing max nested loops errors or infinite loops. 105 103 106 = 0.9.9 = 104 Fixed issue causing infinite loop with ither plugins that call `appy_filters()` on `the_content` which will cause shortcode to be re-applied again and again.107 Fixed issue causing infinite loop with other plugins that call `appy_filters()` on `the_content` which will cause shortcode to be re-applied again and again. 105 108 106 109 = 0.9.8 = -
blog-in-blog/trunk/bib_post_template.tpl
r218488 r219890 1 <!--fragment of html for post template blog-in-blog Version: 0.9.9 -->1 <!--fragment of html for post template blog-in-blog Version: 0.9.9.1 --> 2 2 <div class="post"> 3 3 <!-- Post Headline --> -
blog-in-blog/trunk/blog-in-blog.php
r218488 r219890 5 5 Plugin URI: http://informationtakesover.co.uk/blog-in-blog-wordpress-plugin/ 6 6 Description: Create a blog within a blog using a category. This plugin basically shows posts in a category on a page using shortcodes. 7 Version: 0.9.9 7 Version: 0.9.9.1 8 8 Author: Tim Hodson 9 9 Author URI: http://timhodson.com … … 34 34 include_once( WP_PLUGIN_DIR."/blog-in-blog/options.php" ); 35 35 36 37 38 36 $plugin_dir = basename(dirname(__FILE__)); 39 37 load_plugin_textdomain( 'blog-in-blog', 'wp-content/plugins/' . $plugin_dir, $plugin_dir ); 40 38 39 #global $BIB_RUN ; 40 #if ($BIB_RUN != 1) { $BIB_RUN=0; } 41 #echo $BUB_RUN; 41 42 42 43 function blog_in_blog_func($atts) { 43 44 global $blog_in_blog_opts; 44 45 global $wp_query; 45 46 47 // prevent infinite loops... 48 // now that we have started our first blog-in-blog processing, we make sure that we don't do it again. 49 remove_shortcode('blog_in_blog'); 50 // we also now make sure the shortcode text is removed from the post content by other plugins. 51 add_filter( 'the_content', 'bib_remove_shortcode' ) ; 52 46 53 extract(shortcode_atts(array ( 47 54 'category_id' => '1', … … 117 124 $data['post_author_avatar'] = get_avatar( $post->post_author , $blog_in_blog_opts['bib_avatar_size'] ); 118 125 119 #$data['post_content'] = apply_filters('the_content', $post->post_content);120 $data['post_content'] = $post->post_content;121 122 #$data['post_excerpt'] = apply_filters('the_excerpt', bib_process_excerpt($post) );123 $data['post_excerpt'] = bib_process_excerpt($post) ;126 $data['post_content'] = apply_filters('the_content', $post->post_content); 127 #$data['post_content'] = $post->post_content; 128 129 $data['post_excerpt'] = apply_filters('the_excerpt', bib_process_excerpt($post) ); 130 #$data['post_excerpt'] = bib_process_excerpt($post) ; 124 131 125 132 $data['post_permalink'] = get_permalink($post); … … 150 157 } 151 158 159 #$BIB_RUN = 1; 160 152 161 // return the posts data. 153 162 return $out; 154 163 } 155 164 add_shortcode('blog_in_blog', 'blog_in_blog_func'); 165 166 167 /** 168 * Filter to remove the shortcode to prevent display after other functions have applied the_content filter 169 */ 170 171 function bib_remove_shortcode($content=''){ 172 $content = preg_replace("/\[blog_in_blog.*\]/","",$content); 173 //echo "The Content from bib_remove_shortcode:(".$content.")"; 174 return $content; 175 } 176 177 156 178 157 179 /** … … 389 411 return $out; 390 412 } 413 414 391 415 /** 392 416 * Page navi … … 528 552 } 529 553 554 530 555 function bib_get_post_count() { 531 556 global $wpdb; -
blog-in-blog/trunk/readme.txt
r218488 r219890 5 5 Requires at least: 2.7.1 6 6 Tested up to: 2.9.2 7 Stable tag: 0.9.9 7 Stable tag: 0.9.9.1 8 8 9 9 Create a blog within a blog using a category. This plugin basically shows posts in a category on a page using shortcodes. … … 101 101 == Changelog == 102 102 103 = 0.9.9.1 = 104 Tried a different fix for `apply_fiters()` issues. Basically other plugins and themes were calling `the_content` and attempting to reapply the blog-in-blog shortcode, causing max nested loops errors or infinite loops. 105 103 106 = 0.9.9 = 104 Fixed issue causing infinite loop with ither plugins that call `appy_filters()` on `the_content` which will cause shortcode to be re-applied again and again.107 Fixed issue causing infinite loop with other plugins that call `appy_filters()` on `the_content` which will cause shortcode to be re-applied again and again. 105 108 106 109 = 0.9.8 =
Note: See TracChangeset
for help on using the changeset viewer.