Changeset 700897
- Timestamp:
- 04/21/2013 01:00:05 AM (13 years ago)
- Location:
- better-wp-varnish
- Files:
-
- 24 added
- 4 edited
-
tags/0.0.2 (added)
-
tags/0.0.2/better-wp-varnish.php (added)
-
tags/0.0.2/inc (added)
-
tags/0.0.2/inc/admin.php (added)
-
tags/0.0.2/inc/setup.php (added)
-
tags/0.0.2/index.php (added)
-
tags/0.0.2/languages (added)
-
tags/0.0.2/languages/index.php (added)
-
tags/0.0.2/lib (added)
-
tags/0.0.2/lib/bit51 (added)
-
tags/0.0.2/lib/bit51/bit51.css (added)
-
tags/0.0.2/lib/bit51/bit51.php (added)
-
tags/0.0.2/lib/bit51/images (added)
-
tags/0.0.2/lib/bit51/images/bit51-small.png (added)
-
tags/0.0.2/lib/bit51/images/bit51.png (added)
-
tags/0.0.2/lib/bit51/images/facebook.png (added)
-
tags/0.0.2/lib/bit51/images/google.png (added)
-
tags/0.0.2/lib/bit51/images/index.php (added)
-
tags/0.0.2/lib/bit51/images/subscribe.png (added)
-
tags/0.0.2/lib/bit51/images/twitter.png (added)
-
tags/0.0.2/lib/bit51/index.php (added)
-
tags/0.0.2/lib/index.php (added)
-
tags/0.0.2/readme.txt (added)
-
tags/0.0.2/screenshot-1.png (added)
-
trunk/better-wp-varnish.php (modified) (4 diffs)
-
trunk/inc/admin.php (modified) (1 diff)
-
trunk/lib/bit51/bit51.php (modified) (3 diffs)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
better-wp-varnish/trunk/better-wp-varnish.php
r642939 r700897 4 4 Plugin URI: http://bit51.com/software/better-wp-varnish/ 5 5 Description: A better solution for clearing Varnish cache with WordPress 6 Version: Dev6 Version: 0.0.2 7 7 Text Domain: better-wp-varnish 8 8 Domain Path: /languages 9 Author: Bit51 .com9 Author: Bit51 10 10 Author URI: http://bit51.com 11 11 License: GPLv2 … … 21 21 class bit51_bwpv extends Bit51 { 22 22 23 public $pluginversion = '000 1'; //current plugin version23 public $pluginversion = '0002'; //current plugin version 24 24 25 25 //important plugin information … … 111 111 ) ); 112 112 113 if ( is _page() || is_single()) {113 if ( isset( $post->ID ) && $post->ID ) { 114 114 $id = $post->ID; 115 } elseif ( is_home() ) {116 $id = 'front';117 115 } else { 118 116 $id = false; … … 194 192 195 193 $url = get_permalink( $postid ); 196 $link = str_replace( get_bloginfo( 'wpurl'), '', $url );194 $link = str_replace( home_url(), '', $url ); 197 195 198 196 $success = $this->purgeVarnish( $link ); -
better-wp-varnish/trunk/inc/admin.php
r642939 r700897 80 80 } else { 81 81 82 $bit51bwpv->purgePost( filter_var( $_GET[' ID'], FILTER_SANITIZE_STRING ) );82 $bit51bwpv->purgePost( filter_var( $_GET['id'], FILTER_SANITIZE_STRING ) ); 83 83 84 84 } -
better-wp-varnish/trunk/lib/bit51/bit51.php
r642939 r700897 11 11 abstract class Bit51 { 12 12 13 var $feed = 'http:// feeds.feedburner.com/Bit51'; //current address of Bit51.com feed13 var $feed = 'http://bit51.com/feed'; //current address of Bit51.com feed 14 14 15 15 /** … … 350 350 351 351 $feed = fetch_feed( $this->feed ); //get the feed 352 353 $feeditems = $feed->get_items( 0, $feed->get_item_quantity( 5 ) ); //narrow feed to last 5 items 354 355 $content = '<ul>'; //start list 356 357 if ( ! $feeditems ) { 358 359 $content .= '<li class="bit51">' . __( 'No news items, feed might be broken...', $this->hook ) . '</li>'; 352 353 if ( ! isset( $feed->errors ) ) { 354 355 $feeditems = $feed->get_items( 0, $feed->get_item_quantity( 5 ) ); //narrow feed to last 5 items 356 357 $content = '<ul>'; //start list 358 359 if ( ! $feeditems ) { 360 361 $content .= '<li class="bit51">' . __( 'No news items, feed might be broken...', $this->hook ) . '</li>'; 360 362 363 } else { 364 365 foreach ( $feeditems as $item ) { 366 367 $url = preg_replace( '/#.*/', '', esc_url( $item->get_permalink(), $protocolls = null, 'display' ) ); 368 369 $content .= '<li class="bit51"><a class="rsswidget" href="' . $url . '" target="_blank">'. esc_html( $item->get_title() ) .'</a></li>'; 370 371 } 372 373 } 374 375 $content .= '</ul>'; //end list 376 361 377 } else { 362 363 foreach ( $feeditems as $item ) { 364 365 $url = preg_replace( '/#.*/', '', esc_url( $item->get_permalink(), $protocolls = null, 'display' ) ); 366 367 $content .= '<li class="bit51"><a class="rsswidget" href="' . $url . '" target="_blank">'. esc_html( $item->get_title() ) .'</a></li>'; 368 369 } 370 371 } 372 373 $content .= '</ul>'; //end list 378 $content = __( 'It appears as if the feed is currently down. Please try again later', $this->hook ); 379 } 374 380 375 381 $this->postbox( 'bit51posts' , __( 'The Latest from Bit51', $this->hook ), $content ); //set up postbox … … 385 391 function donate() { 386 392 387 $content = __( 'Have you found this plugin useful? Please help support it\'s continued development with a donation of $20, $50, or $100!', $this->hook );393 $content = __( 'Have you found this plugin useful? Please help support it\'s continued development with a donation of $20, $50, or even $100.', $this->hook ); 388 394 389 395 $content .= '<form action="https://www.paypal.com/cgi-bin/webscr" method="post"><input type="hidden" name="cmd" value="_s-xclick"><input type="hidden" name="hosted_button_id" value="' . $this->paypalcode . '"><input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!"><img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1"></form>'; -
better-wp-varnish/trunk/readme.txt
r642939 r700897 6 6 Tags: varnish, cache, performance 7 7 Requires at least: 3.5 8 Tested up to: 3.5 9 Stable tag: 0.0. 18 Tested up to: 3.5.1 9 Stable tag: 0.0.2 10 10 11 11 The easiest way to maintain your varnish cache. … … 53 53 == Changelog == 54 54 55 = 0.0.2 = 56 * Fixed Bit51 feed with improved error handling 57 * Various bugfixes per <a href="http://bradt.ca/" target="_blank">Brad Touesnard</a> 58 55 59 = 0.0.1 = 56 60
Note: See TracChangeset
for help on using the changeset viewer.