| @@ 173-179 (lines=7) @@ | ||
| 170 | ||
| 171 | foreach( $this->autoupdate_results[ $type ] as $result ) { |
|
| 172 | if ( $result->result ) { |
|
| 173 | switch( $type ) { |
|
| 174 | case 'theme': |
|
| 175 | $successful_updates[] = $result->item->theme; |
|
| 176 | break; |
|
| 177 | default: |
|
| 178 | $successful_updates[] = $result->item->plugin; |
|
| 179 | } |
|
| 180 | } |
|
| 181 | } |
|
| 182 | ||
| @@ 199-205 (lines=7) @@ | ||
| 196 | return false; |
|
| 197 | } |
|
| 198 | foreach( $this->autoupdate_results[ $type ] as $result ) { |
|
| 199 | switch( $type ) { |
|
| 200 | case 'theme': |
|
| 201 | $id = $result->item->theme; |
|
| 202 | break; |
|
| 203 | default: |
|
| 204 | $id = $result->item->plugin; |
|
| 205 | } |
|
| 206 | if ( $id == $item && isset( $result->messages ) ) { |
|
| 207 | return implode( ', ', $result->messages ); |
|
| 208 | } |
|