This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Plugin Name: P3 Custom Scanner | |
Plugin URI: http://inside.godaddy.com/ | |
Description: Customize the pages scanned by P3's auto scan mode | |
Author: GoDaddy.com | |
Version: 1.0 | |
Author URI: http://www.godaddy.com/ | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Index: includes/mock-image-editor.php | |
=================================================================== | |
--- includes/mock-image-editor.php (revision 1108) | |
+++ includes/mock-image-editor.php (working copy) | |
@@ -5,13 +5,12 @@ | |
class WP_Image_Editor_Mock extends WP_Image_Editor { | |
public static $load_return = true; | |
- public static $test_return = true; | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Index: includes/mock-image-editor.php | |
=================================================================== | |
--- includes/mock-image-editor.php (revision 0) | |
+++ includes/mock-image-editor.php (working copy) | |
@@ -0,0 +1,38 @@ | |
+<?php | |
+ | |
+class WP_Image_Editor_Mock extends WP_Image_Editor { | |
+ | |
+ public static $load_return = true; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Index: tests/image/resize.php | |
=================================================================== | |
--- tests/image/resize.php (revision 1017) | |
+++ tests/image/resize.php (working copy) | |
@@ -123,4 +123,23 @@ | |
unlink($image); | |
} | |
+ /** | |
+ * Try resizing a non-existent image |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
abstract class WP_Image_Editor_Base { | |
protected $file = false; | |
protected $size = false; | |
protected $orig_type = false; | |
protected $quality = 90; | |
public function __construct( $filename ) { | |
xdebug_start_trace(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
find $1 \( -type f -and \( -name "*.php" -or -name "*.inc" -or -name "*.phtml" \) \) -exec php -l {} \; | grep -v "No syntax errors" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Index: wp-admin/includes/image.php | |
=================================================================== | |
--- wp-admin/includes/image.php (revision 21427) | |
+++ wp-admin/includes/image.php (working copy) | |
@@ -143,9 +143,11 @@ | |
} | |
$sizes = apply_filters( 'intermediate_image_sizes_advanced', $sizes ); | |
+ | |
+ $image = wp_load_image( $file ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Index: wp-includes/plugin.php | |
=================================================================== | |
--- wp-includes/plugin.php (revision 21276) | |
+++ wp-includes/plugin.php (working copy) | |
@@ -164,12 +164,26 @@ | |
$args = func_get_args(); | |
do { | |
- foreach( (array) current($wp_filter[$tag]) as $the_ ) | |
- if ( !is_null($the_['function']) ){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Index: wp-includes/l10n.php | |
IDEA additional info: | |
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP | |
<+>UTF-8 | |
=================================================================== | |
--- wp-includes/l10n.php (revision 21279) | |
+++ wp-includes/l10n.php (revision ) | |
@@ -493,10 +493,11 @@ | |
* @param string $domain | |
* @return object A Translation instance |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Requests lib | |
// See https://github.com/rmccue/Requests | |
require_once 'Requests/library/Requests.php'; | |
Requests::register_autoloader(); | |
// Stopwatch | |
$timer = new Timer(); |