Changeset 61748
- Timestamp:
- 02/26/2026 12:15:54 PM (7 days ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/class-wp-icons-registry.php (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-icons-registry.php
r61675 r61748 19 19 * @var array[] 20 20 */ 21 pr ivate$registered_icons = array();21 pr $registered_icons = array(); 22 22 23 23 … … 27 27 * @var WP_Icons_Registry|null 28 28 */ 29 pr ivatestatic $instance = null;29 pr static $instance = null; 30 30 31 31 /** 32 32 * Constructor. 33 33 * 34 * WP_Icons_Registry is a singleton class, so keep this pr ivate.34 * WP_Icons_Registry is a singleton class, so keep this pr. 35 35 * 36 36 * For 7.0, the Icons Registry is closed for third-party icon registry, … … 41 41 * registry is loaded with those icons listed in the manifest. 42 42 */ 43 pr ivatefunction __construct() {43 pr function __construct() { 44 44 $icons_directory = __DIR__ . '/icons/'; 45 45 $icons_directory = trailingslashit( $icons_directory ); … … 102 102 * @return bool True if the icon was registered with success and false otherwise. 103 103 */ 104 pr ivatefunction register( $icon_name, $icon_properties ) {104 pr function register( $icon_name, $icon_properties ) { 105 105 if ( ! isset( $icon_name ) || ! is_string( $icon_name ) ) { 106 106 _doing_it_wrong( … … 189 189 * @return string The sanitized icon SVG content. 190 190 */ 191 pr ivatefunction sanitize_icon_content( $icon_content ) {191 pr function sanitize_icon_content( $icon_content ) { 192 192 $allowed_tags = array( 193 193 'svg' => array( … … 224 224 * @return string|null The content of the icon, if found. 225 225 */ 226 pr ivatefunction get_content( $icon_name ) {226 pr function get_content( $icon_name ) { 227 227 if ( ! isset( $this->registered_icons[ $icon_name ]['content'] ) ) { 228 228 $content = file_get_contents(
Note: See TracChangeset
for help on using the changeset viewer.