Changeset 53933
- Timestamp:
- 08/23/2022 05:46:46 PM (2 years ago)
- Location:
- trunk
- Files:
-
- 3 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-theme.php
r53700 r53933 24 24 * @since 3.4.0 25 25 * @since 5.4.0 Added `Requires at least` and `Requires PHP` headers. 26 26 27 * @var string[] 27 28 */ … … 40 41 'RequiresWP' => 'Requires at least', 41 42 'RequiresPHP' => 'Requires PHP', 43 42 44 ); 43 45 … … 845 847 * @since 3.4.0 846 848 * @since 5.4.0 Added support for `Requires at least` and `Requires PHP` headers. 849 847 850 * 848 851 * @param string $header Theme header. Accepts 'Name', 'Description', 'Author', 'Version', 849 * 'ThemeURI', 'AuthorURI', 'Status', 'Tags', 'RequiresWP', 'RequiresPHP'. 852 * 'ThemeURI', 'AuthorURI', 'Status', 'Tags', 'RequiresWP', 'RequiresPHP', 853 * 'UpdateURI'. 850 854 * @param string $value Value to sanitize. 851 855 * @return string|array An array for Tags header, string otherwise. … … 897 901 case 'RequiresWP': 898 902 case 'RequiresPHP': 903 899 904 $value = strip_tags( $value ); 900 905 break; -
trunk/src/wp-includes/update.php
r53753 r53933 506 506 * @param array $plugin_data Plugin headers. 507 507 * @param string $plugin_file Plugin filename. 508 * @param array $locales Installed locales to look translations for.508 * @param array $locales Installed locales to look translations for. 509 509 */ 510 510 $update = apply_filters( "update_plugins_{$hostname}", false, $plugin_data, $plugin_file, $locales ); … … 614 614 'Author' => $theme->get( 'Author' ), 615 615 'Author URI' => $theme->get( 'AuthorURI' ), 616 616 617 'Template' => $theme->get_template(), 617 618 'Stylesheet' => $theme->get_stylesheet(), … … 745 746 } 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 747 834 set_site_transient( 'update_themes', $new_update ); 748 835 } -
trunk/tests/phpunit/tests/theme/themeDir.php
r53916 r53933 183 183 'Webfonts theme', 184 184 'Empty `fontFace` in theme.json - no webfonts defined', 185 185 186 ); 186 187 -
trunk/tests/phpunit/tests/theme/wpTheme.php
r53916 r53933 406 406 ); 407 407 } 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 408 454 }
Note: See TracChangeset
for help on using the changeset viewer.