Changeset 13443 for sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/inc/template-tags.php
- Timestamp:
- 04/03/2024 07:01:21 AM (6 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/inc/template-tags.php
r13335 r13443 721 721 $import_warnings = get_post_meta( $post->ID, '_import_warnings', true ); 722 722 if ( $import_warnings ) { 723 724 if ( ! wp_is_numeric_array( $import_warnings ) ) { 725 // error_code => error_data, convert to error_code => human_readable_error 726 727 foreach ( $import_warnings as $error_code => $error_data ) { 728 $import_warnings[ $error_code ] = Readme_Validator::instance()->translate_code_to_message( $error_code, $error_data ); 729 } 730 } else { 731 // back-compat; previously this was an array of numeric indexed human-readable strings. 732 } 733 723 734 $import_warnings = '<ul><li>' . implode( '</li><li>', $import_warnings ) . '</li></ul>'; 724 735 printf(
Note: See TracChangeset
for help on using the changeset viewer.