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
<?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
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
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: 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
<?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
kpayne@localhost:/cygdrive/c/wamp/www/wordpress-unit-tests$ svn status | |
X data/plugins/wordpress-importer | |
X data/wpcom-themes | |
X wordpress | |
Performing status on external item at 'data/wpcom-themes': | |
Performing status on external item at 'data/plugins/wordpress-importer': | |
Performing status on external item at 'wordpress': |
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 | |
set_error_handler( function( $errno, $errstr, $errfile) { | |
if ( 'wp-db.php' !== basename( $errfile ) ) { | |
if ( preg_match( '/^(mysql_[a-zA-Z0-9_]+)/', $errstr, $matches ) ) { | |
_doing_it_wrong( $matches[1], 'Please talk to the database using $wpdb', '3.7' ); | |
return apply_filters( 'wpdb_drivers_raw_mysql_call_trigger_error', 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
{ | |
"offers": [ | |
{ | |
"response": "upgrade", | |
"download": "https:\/\/wordpress.org\/wordpress-3.7.1.zip", | |
"locale": "en_US", | |
"packages": { | |
"full": "https:\/\/wordpress.org\/wordpress-3.7.1.zip", | |
"no_content": "https:\/\/wordpress.org\/wordpress-3.7.1-no-content.zip", | |
"new_bundled": "https:\/\/wordpress.org\/wordpress-3.7.1-new-bundled.zip", |