Ticket #48852: 48852.patch
| File 48852.patch, 628 bytes (added by , 7 years ago) |
|---|
-
src/wp-includes/class-wp-theme.php
440 440 * @return string Theme name, ready for display (translated) 441 441 */ 442 442 public function __toString() { 443 return (string) $this->display( 'Name' ); 443 $response = null; 444 try { 445 $response = (string) $this->display( 'Name' ); 446 } catch (Exception $e) { 447 $response = new WP_Error( 'theme_name_missing', __( $e->getMessage() ) ); 448 } 449 return $response; 444 450 } 445 451 446 452 /**