OSDN Git Service
(root)
/
wvm
/
wvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c797836
)
Removed obsolete check
author
jmslbam
<jmslbam@gmail.com>
Fri, 8 Mar 2013 21:25:26 +0000
(22:25 +0100)
committer
jmslbam
<jmslbam@gmail.com>
Fri, 8 Mar 2013 21:25:26 +0000
(22:25 +0100)
php/commands/media.php
patch
|
blob
|
history
diff --git
a/php/commands/media.php
b/php/commands/media.php
index
3833779
..
77c6a10
100644
(file)
--- a/
php/commands/media.php
+++ b/
php/commands/media.php
@@
-57,12
+57,7
@@
class Media_Command extends WP_CLI_Command {
private function _process_regeneration( $id ) {
$image = get_post( $id );
-
- if ( !$image || 'attachment' != $image->post_type || 'image/' != substr( $image->post_mime_type, 0, 6 ) ) {
- WP_CLI::warning( "{$image->post_title} - invalid image ID." );
- return;
- }
-
+
$fullsizepath = get_attached_file( $image->ID );
if ( false === $fullsizepath || !file_exists( $fullsizepath ) ) {