Changeset 41611 for trunk/src/wp-admin/includes/ajax-actions.php
- Timestamp:
- 09/27/2017 09:43:07 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/ajax-actions.php
r41584 r41611 3464 3464 'update' => 'theme', 3465 3465 'slug' => $stylesheet, 3466 'oldVersion' => '', 3466 3467 'newVersion' => '', 3467 3468 ); … … 3470 3471 $status['errorMessage'] = __( 'Sorry, you are not allowed to update themes for this site.' ); 3471 3472 wp_send_json_error( $status ); 3473 } 3474 3475 $theme = wp_get_theme( $stylesheet ); 3476 if ( $theme->exists() ) { 3477 $status['oldVersion'] = $theme->get( 'Version' ); 3472 3478 } 3473 3479 … … 3503 3509 3504 3510 $theme = wp_get_theme( $stylesheet ); 3505 if ( $theme-> get( 'Version') ) {3511 if ( $theme->exists() ) { 3506 3512 $status['newVersion'] = $theme->get( 'Version' ); 3507 3513 }
Note: See TracChangeset
for help on using the changeset viewer.