Changeset 62560 for branches/7.0/src/wp-includes/formatting.php
- Timestamp:
- 06/25/2026 10:26:14 AM (5 days ago)
- Location:
- branches/7.0
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
src/wp-includes/formatting.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/7.0
-
branches/7.0/src/wp-includes/formatting.php
r61855 r62560 5899 5899 * @since 4.2.0 5900 5900 */ 5901 function print_emoji_detection_script() {5901 function print_emoji_detection_script(): void { 5902 5902 static $printed = false; 5903 5903 … … 5908 5908 $printed = true; 5909 5909 5910 if ( did_action( 'wp_print_footer_scripts' ) ) { 5911 _print_emoji_detection_script(); 5910 if ( is_admin() ) { 5911 if ( did_action( 'admin_print_footer_scripts' ) ) { 5912 _print_emoji_detection_script(); 5913 } else { 5914 add_action( 'admin_print_footer_scripts', '_print_emoji_detection_script' ); 5915 } 5912 5916 } else { 5913 add_action( 'wp_print_footer_scripts', '_print_emoji_detection_script' ); 5917 if ( did_action( 'wp_print_footer_scripts' ) ) { 5918 _print_emoji_detection_script(); 5919 } else { 5920 add_action( 'wp_print_footer_scripts', '_print_emoji_detection_script' ); 5921 } 5914 5922 } 5915 5923 }
Note: See TracChangeset
for help on using the changeset viewer.