From bfd4f809271b5abf59d823d9cc03a829c206a013 Mon Sep 17 00:00:00 2001
From: Mike Pearce <mike@mikepearce.net>
Date: Thu, 12 Dec 2013 13:50:44 +0000
Subject: [PATCH] Incremented version number and removed debug code.

---
 class-wp-codebird.php | 8 +-------
 1 file changed, 1 insertion(+), 7 deletions(-)

diff --git a/class-wp-codebird.php b/class-wp-codebird.php
index 84dc1b4..e77a0a4 100644
--- a/class-wp-codebird.php
+++ b/class-wp-codebird.php
@@ -4,7 +4,7 @@
  * An extension of the Codebird class to use Wordpress' HTTP API instead of
  * cURL.
  *
- * @version 1.1.0
+ * @version 1.1.2
  */
 class WP_Codebird extends Codebird {
 	/**
@@ -326,12 +326,6 @@ class WP_Codebird extends Codebird {
 
 			// check for filenames
 			if ( in_array( $key, $possible_files ) ) {
-				/**
-				 * As is_file, file_exists and is_readable don't pattern match on paths, instead they
-				 * look for the file, we get errors when using them on vars that contain image data.
-				 * This is why we check for an extension
-				 */
-				$value = "/home/wpcom/public_html/wp-content/themes/pub/twentyeleven/images/headers/chessboard.jpg";
 				if (
 					in_array( strtolower( end( explode( ".", $value ) ) ), $this->_supported_media_files_extensions )
 					&& file_exists( $value )
-- 
GitLab