<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[38583] trunk: Themes: Add the non-encoded form of the queried item slug to the template hierarchy when the slug contains non-ASCII characters.</title>
</head>
<body>

<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt;  }
#msg dl a { font-weight: bold}
#msg dl a:link    { color:#fc3; }
#msg dl a:active  { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff  {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta" style="font-size: 105%">
<dt style="float: left; width: 6em; font-weight: bold">Revision</dt> <dd><a style="font-weight: bold" href="https://core.trac.wordpress.org/changeset/38583">38583</a><script type="application/ld+json">{"@context":"http://schema.org","@type":"EmailMessage","description":"Review this Commit","action":{"@type":"ViewAction","url":"https://core.trac.wordpress.org/changeset/38583","name":"Review Commit"}}</script></dd>
<dt style="float: left; width: 6em; font-weight: bold">Author</dt> <dd>johnbillion</dd>
<dt style="float: left; width: 6em; font-weight: bold">Date</dt> <dd>2016-09-09 00:47:17 +0000 (Fri, 09 Sep 2016)</dd>
</dl>

<pre style='padding-left: 1em; margin: 2em 0; border-left: 2px solid #ccc; line-height: 1.25; font-size: 105%; font-family: sans-serif'>Themes: Add the non-encoded form of the queried item slug to the template hierarchy when the slug contains non-ASCII characters.

This affects category, tag, and custom taxonomy archives, and single posts, pages, and custom post types.

Fixes <a href="https://core.trac.wordpress.org/ticket/37655">#37655</a></pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunksrcwpincludestemplatephp">trunk/src/wp-includes/template.php</a></li>
<li><a href="#trunktestsphpunitteststemplatephp">trunk/tests/phpunit/tests/template.php</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunksrcwpincludestemplatephp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/wp-includes/template.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-includes/template.php        2016-09-09 00:33:52 UTC (rev 38582)
+++ trunk/src/wp-includes/template.php  2016-09-09 00:47:17 UTC (rev 38583)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -189,6 +189,12 @@
</span><span class="cx" style="display: block; padding: 0 10px">        $templates = array();
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">        if ( ! empty( $category->slug ) ) {
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+
+               $slug_decoded = urldecode( $category->slug );
+               if ( $slug_decoded !== $category->slug ) {
+                       $templates[] = "category-{$slug_decoded}.php";
+               }
+
</ins><span class="cx" style="display: block; padding: 0 10px">                 $templates[] = "category-{$category->slug}.php";
</span><span class="cx" style="display: block; padding: 0 10px">                $templates[] = "category-{$category->term_id}.php";
</span><span class="cx" style="display: block; padding: 0 10px">        }
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -219,6 +225,12 @@
</span><span class="cx" style="display: block; padding: 0 10px">        $templates = array();
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">        if ( ! empty( $tag->slug ) ) {
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+
+               $slug_decoded = urldecode( $tag->slug );
+               if ( $slug_decoded !== $tag->slug ) {
+                       $templates[] = "tag-{$slug_decoded}.php";
+               }
+
</ins><span class="cx" style="display: block; padding: 0 10px">                 $templates[] = "tag-{$tag->slug}.php";
</span><span class="cx" style="display: block; padding: 0 10px">                $templates[] = "tag-{$tag->term_id}.php";
</span><span class="cx" style="display: block; padding: 0 10px">        }
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -255,6 +267,12 @@
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">        if ( ! empty( $term->slug ) ) {
</span><span class="cx" style="display: block; padding: 0 10px">                $taxonomy = $term->taxonomy;
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+
+               $slug_decoded = urldecode( $term->slug );
+               if ( $slug_decoded !== $term->slug ) {
+                       $templates[] = "taxonomy-$taxonomy-{$slug_decoded}.php";
+               }
+
</ins><span class="cx" style="display: block; padding: 0 10px">                 $templates[] = "taxonomy-$taxonomy-{$term->slug}.php";
</span><span class="cx" style="display: block; padding: 0 10px">                $templates[] = "taxonomy-$taxonomy.php";
</span><span class="cx" style="display: block; padding: 0 10px">        }
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -349,8 +367,13 @@
</span><span class="cx" style="display: block; padding: 0 10px">        $templates = array();
</span><span class="cx" style="display: block; padding: 0 10px">        if ( $template && 0 === validate_file( $template ) )
</span><span class="cx" style="display: block; padding: 0 10px">                $templates[] = $template;
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-        if ( $pagename )
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ if ( $pagename ) {
+               $pagename_decoded = urldecode( $pagename );
+               if ( $pagename_decoded !== $pagename ) {
+                       $templates[] = "page-{$pagename_decoded}.php";
+               }
</ins><span class="cx" style="display: block; padding: 0 10px">                 $templates[] = "page-$pagename.php";
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+        }
</ins><span class="cx" style="display: block; padding: 0 10px">         if ( $id )
</span><span class="cx" style="display: block; padding: 0 10px">                $templates[] = "page-$id.php";
</span><span class="cx" style="display: block; padding: 0 10px">        $templates[] = 'page.php';
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -409,6 +432,12 @@
</span><span class="cx" style="display: block; padding: 0 10px">        $templates = array();
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">        if ( ! empty( $object->post_type ) ) {
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+
+               $name_decoded = urldecode( $object->post_name );
+               if ( $name_decoded !== $object->post_name ) {
+                       $templates[] = "single-{$object->post_type}-{$name_decoded}.php";
+               }
+
</ins><span class="cx" style="display: block; padding: 0 10px">                 $templates[] = "single-{$object->post_type}-{$object->post_name}.php";
</span><span class="cx" style="display: block; padding: 0 10px">                $templates[] = "single-{$object->post_type}.php";
</span><span class="cx" style="display: block; padding: 0 10px">        }
</span></span></pre></div>
<a id="trunktestsphpunitteststemplatephp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/tests/phpunit/tests/template.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/template.php    2016-09-09 00:33:52 UTC (rev 38582)
+++ trunk/tests/phpunit/tests/template.php      2016-09-09 00:47:17 UTC (rev 38583)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -16,23 +16,23 @@
</span><span class="cx" style="display: block; padding: 0 10px">        public static function wpSetUpBeforeClass( WP_UnitTest_Factory $factory ) {
</span><span class="cx" style="display: block; padding: 0 10px">                self::$page_on_front = $factory->post->create_and_get( array(
</span><span class="cx" style="display: block; padding: 0 10px">                        'post_type' => 'page',
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                        'post_name' => 'page-on-front',
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                 'post_name' => 'page-on-front-😀',
</ins><span class="cx" style="display: block; padding: 0 10px">                 ) );
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                self::$page_for_posts = $factory->post->create_and_get( array(
</span><span class="cx" style="display: block; padding: 0 10px">                        'post_type' => 'page',
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                        'post_name' => 'page-for-posts',
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                 'post_name' => 'page-for-posts-😀',
</ins><span class="cx" style="display: block; padding: 0 10px">                 ) );
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                self::$page = $factory->post->create_and_get( array(
</span><span class="cx" style="display: block; padding: 0 10px">                        'post_type' => 'page',
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                        'post_name' => 'page-name',
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                 'post_name' => 'page-name-😀',
</ins><span class="cx" style="display: block; padding: 0 10px">                 ) );
</span><span class="cx" style="display: block; padding: 0 10px">                add_post_meta( self::$page->ID, '_wp_page_template', 'templates/page.php' );
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                self::$post = $factory->post->create_and_get( array(
</span><span class="cx" style="display: block; padding: 0 10px">                        'post_type' => 'post',
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                        'post_name' => 'post-name',
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                 'post_name' => 'post-name-😀',
</ins><span class="cx" style="display: block; padding: 0 10px">                         'post_date' => '1984-02-25 12:34:56',
</span><span class="cx" style="display: block; padding: 0 10px">                ) );
</span><span class="cx" style="display: block; padding: 0 10px">                set_post_format( self::$post, 'quote' );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -84,11 +84,12 @@
</span><span class="cx" style="display: block; padding: 0 10px">        public function test_category_template_hierarchy() {
</span><span class="cx" style="display: block; padding: 0 10px">                $term = self::factory()->term->create_and_get( array(
</span><span class="cx" style="display: block; padding: 0 10px">                        'taxonomy' => 'category',
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                        'slug'     => 'foo',
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                 'slug'     => 'foo-😀',
</ins><span class="cx" style="display: block; padding: 0 10px">                 ) );
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                $this->assertTemplateHierarchy( get_term_link( $term ), array(
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                        'category-foo.php',
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                 'category-foo-😀.php',
+                       'category-foo-%f0%9f%98%80.php',
</ins><span class="cx" style="display: block; padding: 0 10px">                         "category-{$term->term_id}.php",
</span><span class="cx" style="display: block; padding: 0 10px">                        'category.php',
</span><span class="cx" style="display: block; padding: 0 10px">                        'archive.php',
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -98,11 +99,12 @@
</span><span class="cx" style="display: block; padding: 0 10px">        public function test_tag_template_hierarchy() {
</span><span class="cx" style="display: block; padding: 0 10px">                $term = self::factory()->term->create_and_get( array(
</span><span class="cx" style="display: block; padding: 0 10px">                        'taxonomy' => 'post_tag',
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                        'slug'     => 'foo',
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                 'slug'     => 'foo-😀',
</ins><span class="cx" style="display: block; padding: 0 10px">                 ) );
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                $this->assertTemplateHierarchy( get_term_link( $term ), array(
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                        'tag-foo.php',
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                 'tag-foo-😀.php',
+                       'tag-foo-%f0%9f%98%80.php',
</ins><span class="cx" style="display: block; padding: 0 10px">                         "tag-{$term->term_id}.php",
</span><span class="cx" style="display: block; padding: 0 10px">                        'tag.php',
</span><span class="cx" style="display: block; padding: 0 10px">                        'archive.php',
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -112,11 +114,12 @@
</span><span class="cx" style="display: block; padding: 0 10px">        public function test_taxonomy_template_hierarchy() {
</span><span class="cx" style="display: block; padding: 0 10px">                $term = self::factory()->term->create_and_get( array(
</span><span class="cx" style="display: block; padding: 0 10px">                        'taxonomy' => 'taxo',
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                        'slug'     => 'foo',
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                 'slug'     => 'foo-😀',
</ins><span class="cx" style="display: block; padding: 0 10px">                 ) );
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                $this->assertTemplateHierarchy( get_term_link( $term ), array(
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                        'taxonomy-taxo-foo.php',
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                 'taxonomy-taxo-foo-😀.php',
+                       'taxonomy-taxo-foo-%f0%9f%98%80.php',
</ins><span class="cx" style="display: block; padding: 0 10px">                         'taxonomy-taxo.php',
</span><span class="cx" style="display: block; padding: 0 10px">                        'taxonomy.php',
</span><span class="cx" style="display: block; padding: 0 10px">                        'archive.php',
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -170,7 +173,8 @@
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                $this->assertTemplateHierarchy( home_url(), array(
</span><span class="cx" style="display: block; padding: 0 10px">                        'front-page.php',
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                        'page-page-on-front.php',
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                 'page-page-on-front-😀.php',
+                       'page-page-on-front-%f0%9f%98%80.php',
</ins><span class="cx" style="display: block; padding: 0 10px">                         'page-' . self::$page_on_front->ID . '.php',
</span><span class="cx" style="display: block; padding: 0 10px">                        'page.php',
</span><span class="cx" style="display: block; padding: 0 10px">                        'singular.php',
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -191,7 +195,8 @@
</span><span class="cx" style="display: block; padding: 0 10px">        public function test_page_template_hierarchy() {
</span><span class="cx" style="display: block; padding: 0 10px">                $this->assertTemplateHierarchy( get_permalink( self::$page ), array(
</span><span class="cx" style="display: block; padding: 0 10px">                        'templates/page.php',
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                        'page-page-name.php',
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                 'page-page-name-😀.php',
+                       'page-page-name-%f0%9f%98%80.php',
</ins><span class="cx" style="display: block; padding: 0 10px">                         'page-' . self::$page->ID . '.php',
</span><span class="cx" style="display: block; padding: 0 10px">                        'page.php',
</span><span class="cx" style="display: block; padding: 0 10px">                        'singular.php',
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -200,7 +205,8 @@
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">        public function test_single_template_hierarchy_for_post() {
</span><span class="cx" style="display: block; padding: 0 10px">                $this->assertTemplateHierarchy( get_permalink( self::$post ), array(
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                        'single-post-post-name.php',
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                 'single-post-post-name-😀.php',
+                       'single-post-post-name-%f0%9f%98%80.php',
</ins><span class="cx" style="display: block; padding: 0 10px">                         'single-post.php',
</span><span class="cx" style="display: block; padding: 0 10px">                        'single.php',
</span><span class="cx" style="display: block; padding: 0 10px">                        'singular.php',
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -210,11 +216,12 @@
</span><span class="cx" style="display: block; padding: 0 10px">        public function test_single_template_hierarchy_for_custom_post_type() {
</span><span class="cx" style="display: block; padding: 0 10px">                $cpt = self::factory()->post->create_and_get( array(
</span><span class="cx" style="display: block; padding: 0 10px">                        'post_type' => 'cpt',
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                        'post_name' => 'cpt-name',
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                 'post_name' => 'cpt-name-😀',
</ins><span class="cx" style="display: block; padding: 0 10px">                 ) );
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                $this->assertTemplateHierarchy( get_permalink( $cpt ), array(
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                        'single-cpt-cpt-name.php',
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                 'single-cpt-cpt-name-😀.php',
+                       'single-cpt-cpt-name-%f0%9f%98%80.php',
</ins><span class="cx" style="display: block; padding: 0 10px">                         'single-cpt.php',
</span><span class="cx" style="display: block; padding: 0 10px">                        'single.php',
</span><span class="cx" style="display: block; padding: 0 10px">                        'singular.php',
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -223,7 +230,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">        public function test_attachment_template_hierarchy() {
</span><span class="cx" style="display: block; padding: 0 10px">                $attachment = self::factory()->attachment->create_and_get( array(
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                        'post_name'      => 'attachment-name',
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                 'post_name'      => 'attachment-name-😀',
</ins><span class="cx" style="display: block; padding: 0 10px">                         'file'           => 'image.jpg',
</span><span class="cx" style="display: block; padding: 0 10px">                        'post_mime_type' => 'image/jpeg',
</span><span class="cx" style="display: block; padding: 0 10px">                ) );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -232,7 +239,8 @@
</span><span class="cx" style="display: block; padding: 0 10px">                        'jpeg.php',
</span><span class="cx" style="display: block; padding: 0 10px">                        'image.php',
</span><span class="cx" style="display: block; padding: 0 10px">                        'attachment.php',
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                        'single-attachment-attachment-name.php',
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                 'single-attachment-attachment-name-😀.php',
+                       'single-attachment-attachment-name-%f0%9f%98%80.php',
</ins><span class="cx" style="display: block; padding: 0 10px">                         'single-attachment.php',
</span><span class="cx" style="display: block; padding: 0 10px">                        'single.php',
</span><span class="cx" style="display: block; padding: 0 10px">                        'singular.php',
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -244,7 +252,8 @@
</span><span class="cx" style="display: block; padding: 0 10px">                        'embed-post-quote.php',
</span><span class="cx" style="display: block; padding: 0 10px">                        'embed-post.php',
</span><span class="cx" style="display: block; padding: 0 10px">                        'embed.php',
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                        'single-post-post-name.php',
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                 'single-post-post-name-😀.php',
+                       'single-post-post-name-%f0%9f%98%80.php',
</ins><span class="cx" style="display: block; padding: 0 10px">                         'single-post.php',
</span><span class="cx" style="display: block; padding: 0 10px">                        'single.php',
</span><span class="cx" style="display: block; padding: 0 10px">                        'singular.php',
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -256,7 +265,8 @@
</span><span class="cx" style="display: block; padding: 0 10px">                        'embed-page.php',
</span><span class="cx" style="display: block; padding: 0 10px">                        'embed.php',
</span><span class="cx" style="display: block; padding: 0 10px">                        'templates/page.php',
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                        'page-page-name.php',
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                 'page-page-name-😀.php',
+                       'page-page-name-%f0%9f%98%80.php',
</ins><span class="cx" style="display: block; padding: 0 10px">                         'page-' . self::$page->ID . '.php',
</span><span class="cx" style="display: block; padding: 0 10px">                        'page.php',
</span><span class="cx" style="display: block; padding: 0 10px">                        'singular.php',
</span></span></pre>
</div>
</div>

</body>
</html>