Ticket #16868: Updated_Version_of_WordPress.patch
File Updated_Version_of_WordPress.patch, 3.2 KB (added by , 12 years ago) |
---|
-
wp-includes/class-wp-theme.php
23 23 'AuthorURI' => 'Author URI', 24 24 'Version' => 'Version', 25 25 'Template' => 'Template', 26 'TemplateVersion' => 'Template Version', 26 27 'Status' => 'Status', 27 28 'Tags' => 'Tags', 28 29 'TextDomain' => 'Text Domain', 29 30 'DomainPath' => 'Domain Path', 31 'WPRequired' => 'WordPress Required Version', 32 'WPTested' => 'WordPress Tested Version', 30 33 ); 31 34 32 35 /** … … 299 302 */ 300 303 public function __isset( $offset ) { 301 304 static $properties = array( 302 'name', 'title', 'version', 'parent_theme', 'template_dir', 'stylesheet_dir', 'template', ' stylesheet',303 'screenshot', 'description', 'author', 'tags', 'theme_root', 'theme_root_uri', 305 'name', 'title', 'version', 'parent_theme', 'template_dir', 'stylesheet_dir', 'template', 'template_version', 'stylesheet', 306 'screenshot', 'description', 'author', 'tags', 'theme_root', 'theme_root_uri', 'wp_required_version', 'wp_tested_version', 304 307 ); 305 308 306 309 return in_array( $offset, $properties ); … … 324 327 return $this->get_stylesheet_directory(); 325 328 case 'template' : 326 329 return $this->get_template(); 330 case 'template_version' : 331 return $this->get( 'TemplateVersion' ); 327 332 case 'stylesheet' : 328 333 return $this->get_stylesheet(); 329 334 case 'screenshot' : … … 339 344 return $this->get_theme_root(); 340 345 case 'theme_root_uri' : 341 346 return $this->get_theme_root_uri(); 347 case 'wp_required_version' : 348 return $this->get( 'WPRequired' ); 349 case 'wp_tested_version' : 350 return $this->get( 'WPTested' ); 342 351 // For cases where the array was converted to an object. 343 352 default : 344 353 return $this->offsetGet( $offset ); … … 361 370 public function offsetExists( $offset ) { 362 371 static $keys = array( 363 372 'Name', 'Version', 'Status', 'Title', 'Author', 'Author Name', 'Author URI', 'Description', 364 'Template', ' Stylesheet', 'Template Files', 'Stylesheet Files', 'Template Dir', 'Stylesheet Dir',365 'Screenshot', 'Tags', 'Theme Root', 'Theme Root URI', 'Parent Theme', 373 'Template', 'Template Version', 'Stylesheet', 'Template Files', 'Stylesheet Files', 'Template Dir', 'Stylesheet Dir', 374 'Screenshot', 'Tags', 'Theme Root', 'Theme Root URI', 'Parent Theme', 'WordPress Required Version', 'WordPress Tested Version', 366 375 ); 367 376 368 377 return in_array( $offset, $keys ); … … 398 407 return $this->get( $offset ); 399 408 case 'Template' : 400 409 return $this->get_template(); 410 case 'Template Version' : 411 return $this->display( 'TemplateVersion' ); 401 412 case 'Stylesheet' : 402 413 return $this->get_stylesheet(); 403 414 case 'Template Files' : … … 418 429 return $this->get_theme_root_uri(); 419 430 case 'Parent Theme' : 420 431 return $this->parent() ? $this->parent()->get('Name') : ''; 432 case 'WordPress Required Version' : 433 return $this->display( 'WPRequired' ); 434 case 'WordPress Tested Version' : 435 return $this->display( 'WPTested' ); 421 436 default : 422 437 return null; 423 438 }