WordPress.org

Make WordPress Core

Changeset 14492


Ignore:
Timestamp:
05/07/2010 12:50:12 AM (10 years ago)
Author:
nbachiyski
Message:

Use sprintf instead of interpolation in translatable strings. Props demetris, fixes #13286

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/import/wordpress.php

    r14315 r14492  
    320320            $catarr = compact('category_nicename', 'category_parent', 'posts_private', 'links_private', 'posts_private', 'cat_name', 'category_description');
    321321
    322             print "<em>" . __( "Importing category $cat_name" ) . "</em><br />\n";
     322            print '<em>' . sprintf( __( 'Importing category <em>%s</em>&#8230;' ), esc_html($cat_name) ) . '</em><br />' . "\n";
    323323            $cat_ID = wp_insert_category($catarr);
    324324        }
     
    342342            $tagarr = compact('slug', 'description');
    343343
    344             print "<em>" . __( "Importing tag $tag_name" ) . "</em><br />\n";
     344            print '<em>' . sprintf( __( 'Importing tag <em>%s</em>&#8230;' ), esc_html($tag_name) ) . '</em><br />' . "\n";
    345345            $tag_ID = wp_insert_term($tag_name, 'post_tag', $tagarr);
    346346        }
     
    380380            $termarr = compact('slug', 'description');
    381381
    382             print "<em>" . __( "Importing $term_name" ) . "</em><br />\n";
     382            print '<em>' . sprintf( __( 'Importing <em>%s</em>&#8230;' ), esc_html($term_name) ) . '</em><br />' . "\n";
    383383            $term_ID = wp_insert_term($term_name, $this->get_tag( $c, 'wp:term_taxonomy' ), $termarr);
    384384        }
Note: See TracChangeset for help on using the changeset viewer.