| @@ 233-239 (lines=7) @@ | ||
| 230 | ||
| 231 | foreach( $this->autoupdate_results[ $type ] as $result ) { |
|
| 232 | if ( $result->result ) { |
|
| 233 | switch( $type ) { |
|
| 234 | case 'theme': |
|
| 235 | $successful_updates[] = $result->item->theme; |
|
| 236 | break; |
|
| 237 | default: |
|
| 238 | $successful_updates[] = $result->item->plugin; |
|
| 239 | } |
|
| 240 | } |
|
| 241 | } |
|
| 242 | ||
| @@ 259-265 (lines=7) @@ | ||
| 256 | return false; |
|
| 257 | } |
|
| 258 | foreach( $this->autoupdate_results[ $type ] as $result ) { |
|
| 259 | switch( $type ) { |
|
| 260 | case 'theme': |
|
| 261 | $id = $result->item->theme; |
|
| 262 | break; |
|
| 263 | default: |
|
| 264 | $id = $result->item->plugin; |
|
| 265 | } |
|
| 266 | if ( $id == $item && isset( $result->messages ) ) { |
|
| 267 | return implode( ', ', $result->messages ); |
|
| 268 | } |
|