{"id":132,"date":"2026-11-12T16:00:00","date_gmt":"2026-11-12T15:00:00","guid":{"rendered":"https:\/\/hoja.in\/blog\/cleaning-up-an-old-wordpress-child-theme-for-php-8\/"},"modified":"2026-10-16T14:00:13","modified_gmt":"2026-10-16T12:00:13","slug":"cleaning-up-an-old-wordpress-child-theme-for-php-8","status":"publish","type":"post","link":"https:\/\/hoja.in\/blog\/cleaning-up-an-old-wordpress-child-theme-for-php-8\/","title":{"rendered":"Cleaning up an old WordPress child theme for PHP 8"},"content":{"rendered":"<p>Hi folks,<\/p>\n<p>The child theme of this blog was born in November 2015, on top of Twenty Fifteen. I built it from the HTML of a purchased one-page template, so it looked like my portfolio at that time. It worked, more or less, and then I did not touch it for years. When I moved the blog from WordPress 5.6 to 7.1 and from <code>blog.hoja.in<\/code> to <code>hoja.in\/blog<\/code> this year, I finally opened the folder again. What I found was a small museum.<\/p>\n<p>The most famous exhibit, the comment callback passed as a bare constant that is a fatal error on PHP 8, already got its own post about the WordPress upgrade. This post is about everything around it: how I found out what the theme really used, and how I rebuilt it in a way that the next upgrade will not hurt.<\/p>\n<h2>Problems I faced<\/h2>\n<p>A quick look at the old theme folder:<\/p>\n<ul>\n<li><code>assets\/css\/<\/code> with six stylesheets, among them a 15,000-line <code>js_composer.css<\/code> from a page builder, and an IE 8 stylesheet.<\/li>\n<li><code>assets\/js\/<\/code> with its own <code>jquery.js<\/code> 1.11.2, <code>jquery-migrate<\/code>, a 270 KB <code>plugins.js<\/code>, the page builder&#8217;s front-end script and a private copy of <code>comment-reply.min.js<\/code>.<\/li>\n<li><code>assets\/fonts\/<\/code> with Font Awesome and Bebas Neue in five formats each, including <code>.eot<\/code> for very old Internet Explorer.<\/li>\n<li>A <code>plugins\/contact-form-7<\/code> folder with a copy of the plugin&#8217;s CSS, although the plugin was not used.<\/li>\n<li>Copies of many parent templates: <code>404.php<\/code>, <code>archive.php<\/code>, <code>category.php<\/code>, <code>content.php<\/code>, <code>search.php<\/code>, <code>single.php<\/code>, <code>page.php<\/code>, <code>comments.php<\/code>.<\/li>\n<\/ul>\n<p>And the funny ones, which I really have to confess:<\/p>\n<ul>\n<li><code>category.php<\/code> started with <code>echo \"category\";exit;<\/code>. A debug line from 2015. Every category page of the blog showed the word &#8220;category&#8221; and nothing else. For years.<\/li>\n<li><code>index.php<\/code> contained a comment form inside a <code>display:none<\/code> div, copied with the template&#8217;s demo HTML. Its <code>action<\/code> pointed to the <code>wp-comments-post.php<\/code> of the template vendor&#8217;s demo site. Invisible, but sitting in the markup of every list page, and a form that posts to a third-party site has no business on a personal blog.<\/li>\n<li><code>header.php<\/code> printed the stylesheets and jQuery as hard-coded <code>&lt;link&gt;<\/code> and <code>&lt;script&gt;<\/code> tags, while <code>functions.php<\/code> enqueued the parent stylesheet the official way and then dequeued it again with a later hook.<\/li>\n<\/ul>\n<h2>Solution<\/h2>\n<h3>Step 1: Audit what is really referenced<\/h3>\n<p>Before deleting anything, I wanted a list of the assets that templates actually load. A grep over the PHP files gives that in one line:<\/p>\n<pre><code class=\"language-bash\">cd wp-content\/themes\/myblog\ngrep -rhoE \"assets\/(css|js|fonts)\/[^'\"?]+\" --include='*.php' . | sort | uniq -c<\/code><\/pre>\n<p>On the old theme this listed six stylesheets and six scripts. Three JavaScript files in the folder (<code>jquery.min.js<\/code>, <code>jquery.form.min.js<\/code> and the page builder&#8217;s front-end script) were not referenced anywhere: dead weight from day one. For the files that do appear, I asked the second question: does the page still need it? Icon fonts are easy to check; search the templates for the classes:<\/p>\n<pre><code class=\"language-bash\">grep -rn \"fa fa-\" --include='*.php' . | wc -l<\/code><\/pre>\n<p>The old theme had 31 matches. Small decorative icons can be inline SVG or plain text; they do not justify an icon font in five formats. The same is true for jQuery, which was only there for the template&#8217;s lightbox and effect scripts that I did not want anymore.<\/p>\n<h3>Step 2: Enqueue, never hard-code<\/h3>\n<p>Hard-coded tags in <code>header.php<\/code> bypass everything WordPress knows about assets: dependencies, versions for cache busting, plugins that combine or defer files, and the guard that loads a script only once. So the rule for the new theme: <code>header.php<\/code> contains no asset tags at all, only <code>wp_head()<\/code>.<\/p>\n<p>If your child theme keeps the parent&#8217;s design, the documented pattern is to enqueue the parent stylesheet and make the child stylesheet depend on it:<\/p>\n<pre><code class=\"language-php\">add_action('wp_enqueue_scripts', function (): void {\n    wp_enqueue_style('parent-style', get_template_directory_uri() . '\/style.css');\n    wp_enqueue_style(\n        'child-style',\n        get_stylesheet_uri(),\n        ['parent-style'],\n        wp_get_theme()-&gt;get('Version')\n    );\n});<\/code><\/pre>\n<p>My new theme does not use the parent&#8217;s look at all; it follows the portfolio design. So it enqueues one stylesheet and one deferred script of its own, removes the parent&#8217;s styles and scripts by their handles, and loads <code>comment-reply<\/code> from WordPress core only where threaded comments are possible. This is the real code from the theme:<\/p>\n<pre><code class=\"language-php\">function myblog_enqueue_assets(): void\n{\n    $version = wp_get_theme()-&gt;get('Version');\n    $base = get_stylesheet_directory_uri() . '\/assets';\n\n    wp_enqueue_style('myblog', $base . '\/css\/blog.css', [], $version);\n    wp_enqueue_script('myblog', $base . '\/js\/blog.js', [], $version, ['strategy' =&gt; 'defer', 'in_footer' =&gt; false]);\n\n    if (is_singular() &amp;&amp; comments_open() &amp;&amp; get_option('thread_comments')) {\n        wp_enqueue_script('comment-reply');\n    }\n}\nadd_action('wp_enqueue_scripts', 'myblog_enqueue_assets', 20);\n\nfunction myblog_dequeue_parent_assets(): void\n{\n    foreach (['twentyfifteen-style', 'twentyfifteen-block-style', 'twentyfifteen-fonts', 'genericons', 'twentyfifteen-ie'] as $handle) {\n        wp_dequeue_style($handle);\n    }\n    foreach (['twentyfifteen-script', 'twentyfifteen-skip-link-focus-fix', 'twentyfifteen-keyboard-image-navigation'] as $handle) {\n        wp_dequeue_script($handle);\n    }\n}\nadd_action('wp_enqueue_scripts', 'myblog_dequeue_parent_assets', 100);<\/code><\/pre>\n<p>The array as fifth argument of <code>wp_enqueue_script()<\/code> with a loading <code>strategy<\/code> exists since WordPress 6.3. The fonts are self-hosted WOFF2 files under an open font licence, so the blog makes no request to a font CDN anymore, and the version from the theme header busts the browser cache on every theme release.<\/p>\n<h3>Step 3: Delete copied parent templates<\/h3>\n<p>This was the most important step and the least visible one. WordPress takes a template from the child theme first. A copy of the parent&#8217;s <code>single.php<\/code> from 2015 therefore hides every fix the parent made to that file in the years since. The parent theme is at version 4.3 now; my copies were from its first year.<\/p>\n<p>For each copied template, I asked: does it differ from the parent in a way I still want? If not, delete it and let the template hierarchy fall back to the parent. In my case the answer was mostly &#8220;the whole design is new anyway&#8221;, so the new theme has a small set of its own templates and two of them are tiny on purpose:<\/p>\n<pre><code class=\"language-php\">&lt;?php\n\/\/ archive.php: categories, tags, dates and authors use the list layout of index.php\nrequire __DIR__ . \"\/index.php\";<\/code><\/pre>\n<p>There is no <code>category.php<\/code> at all anymore. The template hierarchy goes from <code>category.php<\/code> to <code>archive.php<\/code>, and that one reuses the list. Fewer files, fewer places for an <code>exit<\/code> to hide.<\/p>\n<h3>Step 4: Check with debug mode on<\/h3>\n<p>Many PHP 8 problems in old themes are warnings, not fatals, so the page &#8220;works&#8221; and the log fills up. In the old <code>comments.php<\/code>, for example, the variables <code>$aria_req<\/code> and <code>$required_text<\/code> were defined in one branch and used in another. Locally I run with:<\/p>\n<pre><code class=\"language-php\">\/\/ wp-config.php (local only)\ndefine('WP_DEBUG', true);\ndefine('WP_DEBUG_LOG', true);\ndefine('WP_DEBUG_DISPLAY', false);<\/code><\/pre>\n<p>Then I open every template type once: front page, a single post with comments, a page, a category, a tag, a search result, a 404. After that <code>wp-content\/debug.log<\/code> must be empty. If it is not, that is the work list. Comments matter here: the fatal callback bug only showed up on posts that had comments, so test at least one of those.<\/p>\n<h2>The result<\/h2>\n<p>The new theme has no jQuery, no icon font, no page builder leftovers and no copied parent templates. The comment callback is a proper function name in quotes, written with type declarations. Category pages show categories again, after many years. And I learned to search for <code>exit;<\/code> in every theme I inherit, including my own.<\/p>\n<p>If you are also sitting on a 2015 child theme, give it one evening with the grep from step 1. You will be surprised. Feedbacks are the champion&#8217;s breakfast, so tell me what you found in yours!<\/p>\n<h2>Further reading<\/h2>\n<ul>\n<li><a href=\"https:\/\/developer.wordpress.org\/themes\/advanced-topics\/child-themes\/\">Child themes in the WordPress theme handbook<\/a><\/li>\n<li><a href=\"https:\/\/developer.wordpress.org\/reference\/functions\/wp_enqueue_style\/\">wp_enqueue_style() reference<\/a><\/li>\n<li><a href=\"https:\/\/developer.wordpress.org\/themes\/basics\/template-hierarchy\/\">WordPress template hierarchy<\/a><\/li>\n<li><a href=\"https:\/\/developer.wordpress.org\/advanced-administration\/debug\/debug-wordpress\/\">Debugging in WordPress<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>My 2015 blog child theme bundled jQuery, Font Awesome, copied parent templates, a blank category page and a hidden form to a demo site. How I audited and rebuilt it.<\/p>\n","protected":false},"author":1,"featured_media":133,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[22],"tags":[40,47,32,42],"class_list":["post-132","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-wordpress","tag-css","tag-javascript","tag-php-8","tag-wordpress"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.7 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Cleaning up an old WordPress child theme for PHP 8<\/title>\n<meta name=\"description\" content=\"Audit an old WordPress child theme: find unused bundled assets, enqueue styles with wp_enqueue_style, drop copied parent templates and test with WP_DEBUG.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/hoja.in\/blog\/cleaning-up-an-old-wordpress-child-theme-for-php-8\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Cleaning up an old WordPress child theme for PHP 8\" \/>\n<meta property=\"og:description\" content=\"Audit an old WordPress child theme: find unused bundled assets, enqueue styles with wp_enqueue_style, drop copied parent templates and test with WP_DEBUG.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/hoja.in\/blog\/cleaning-up-an-old-wordpress-child-theme-for-php-8\/\" \/>\n<meta property=\"og:site_name\" content=\"Hoja Mustaffa Abdul Latheef \u00e2\u20ac\u201c Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/hojaonline7\" \/>\n<meta property=\"article:published_time\" content=\"2026-11-12T15:00:00+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/hoja.in\/blog\/wp-content\/uploads\/2026\/10\/cleaning-up-an-old-wordpress-child-theme-for-php-8.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"630\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Hoja Mustaffa Abdul Latheef\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@hojaonline\" \/>\n<meta name=\"twitter:site\" content=\"@hojaonline\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Hoja Mustaffa Abdul Latheef\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"7 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/hoja.in\\\/blog\\\/cleaning-up-an-old-wordpress-child-theme-for-php-8\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/hoja.in\\\/blog\\\/cleaning-up-an-old-wordpress-child-theme-for-php-8\\\/\"},\"author\":{\"name\":\"Hoja Mustaffa Abdul Latheef\",\"@id\":\"https:\\\/\\\/hoja.in\\\/blog\\\/#\\\/schema\\\/person\\\/e6fbd54c2061674d8ea3e7861d858c7b\"},\"headline\":\"Cleaning up an old WordPress child theme for PHP 8\",\"datePublished\":\"2026-11-12T15:00:00+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/hoja.in\\\/blog\\\/cleaning-up-an-old-wordpress-child-theme-for-php-8\\\/\"},\"wordCount\":1023,\"commentCount\":0,\"image\":{\"@id\":\"https:\\\/\\\/hoja.in\\\/blog\\\/cleaning-up-an-old-wordpress-child-theme-for-php-8\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/hoja.in\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/10\\\/cleaning-up-an-old-wordpress-child-theme-for-php-8.jpg\",\"keywords\":[\"CSS\",\"JavaScript\",\"PHP 8\",\"WordPress\"],\"articleSection\":[\"WordPress\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/hoja.in\\\/blog\\\/cleaning-up-an-old-wordpress-child-theme-for-php-8\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/hoja.in\\\/blog\\\/cleaning-up-an-old-wordpress-child-theme-for-php-8\\\/\",\"url\":\"https:\\\/\\\/hoja.in\\\/blog\\\/cleaning-up-an-old-wordpress-child-theme-for-php-8\\\/\",\"name\":\"Cleaning up an old WordPress child theme for PHP 8\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/hoja.in\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/hoja.in\\\/blog\\\/cleaning-up-an-old-wordpress-child-theme-for-php-8\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/hoja.in\\\/blog\\\/cleaning-up-an-old-wordpress-child-theme-for-php-8\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/hoja.in\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/10\\\/cleaning-up-an-old-wordpress-child-theme-for-php-8.jpg\",\"datePublished\":\"2026-11-12T15:00:00+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/hoja.in\\\/blog\\\/#\\\/schema\\\/person\\\/e6fbd54c2061674d8ea3e7861d858c7b\"},\"description\":\"Audit an old WordPress child theme: find unused bundled assets, enqueue styles with wp_enqueue_style, drop copied parent templates and test with WP_DEBUG.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/hoja.in\\\/blog\\\/cleaning-up-an-old-wordpress-child-theme-for-php-8\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/hoja.in\\\/blog\\\/cleaning-up-an-old-wordpress-child-theme-for-php-8\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/hoja.in\\\/blog\\\/cleaning-up-an-old-wordpress-child-theme-for-php-8\\\/#primaryimage\",\"url\":\"https:\\\/\\\/hoja.in\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/10\\\/cleaning-up-an-old-wordpress-child-theme-for-php-8.jpg\",\"contentUrl\":\"https:\\\/\\\/hoja.in\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/10\\\/cleaning-up-an-old-wordpress-child-theme-for-php-8.jpg\",\"width\":1200,\"height\":630,\"caption\":\"Spring cleaning a 2015 theme\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/hoja.in\\\/blog\\\/cleaning-up-an-old-wordpress-child-theme-for-php-8\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/hoja.in\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Cleaning up an old WordPress child theme for PHP 8\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/hoja.in\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/hoja.in\\\/blog\\\/\",\"name\":\"Hoja Mustaffa Abdul Latheef \u00e2\u20ac\u201c Blog\",\"description\":\"Notes from daily work with TYPO3, PHP and AI-assisted engineering\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/hoja.in\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/hoja.in\\\/blog\\\/#\\\/schema\\\/person\\\/e6fbd54c2061674d8ea3e7861d858c7b\",\"name\":\"Hoja Mustaffa Abdul Latheef\",\"description\":\"Senior TYPO3 Developer at jweiland.net, TYPO3 CMS Certified Developer. I write about TYPO3 upgrades, extension development, PHP and AI-assisted engineering with Claude Code.\",\"sameAs\":[\"https:\\\/\\\/hoja.in\\\/\"],\"url\":\"https:\\\/\\\/hoja.in\\\/blog\\\/author\\\/hoja\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Cleaning up an old WordPress child theme for PHP 8","description":"Audit an old WordPress child theme: find unused bundled assets, enqueue styles with wp_enqueue_style, drop copied parent templates and test with WP_DEBUG.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/hoja.in\/blog\/cleaning-up-an-old-wordpress-child-theme-for-php-8\/","og_locale":"en_US","og_type":"article","og_title":"Cleaning up an old WordPress child theme for PHP 8","og_description":"Audit an old WordPress child theme: find unused bundled assets, enqueue styles with wp_enqueue_style, drop copied parent templates and test with WP_DEBUG.","og_url":"https:\/\/hoja.in\/blog\/cleaning-up-an-old-wordpress-child-theme-for-php-8\/","og_site_name":"Hoja Mustaffa Abdul Latheef \u00e2\u20ac\u201c Blog","article_publisher":"https:\/\/www.facebook.com\/hojaonline7","article_published_time":"2026-11-12T15:00:00+00:00","og_image":[{"width":1200,"height":630,"url":"https:\/\/hoja.in\/blog\/wp-content\/uploads\/2026\/10\/cleaning-up-an-old-wordpress-child-theme-for-php-8.jpg","type":"image\/jpeg"}],"author":"Hoja Mustaffa Abdul Latheef","twitter_card":"summary_large_image","twitter_creator":"@hojaonline","twitter_site":"@hojaonline","twitter_misc":{"Written by":"Hoja Mustaffa Abdul Latheef","Est. reading time":"7 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/hoja.in\/blog\/cleaning-up-an-old-wordpress-child-theme-for-php-8\/#article","isPartOf":{"@id":"https:\/\/hoja.in\/blog\/cleaning-up-an-old-wordpress-child-theme-for-php-8\/"},"author":{"name":"Hoja Mustaffa Abdul Latheef","@id":"https:\/\/hoja.in\/blog\/#\/schema\/person\/e6fbd54c2061674d8ea3e7861d858c7b"},"headline":"Cleaning up an old WordPress child theme for PHP 8","datePublished":"2026-11-12T15:00:00+00:00","mainEntityOfPage":{"@id":"https:\/\/hoja.in\/blog\/cleaning-up-an-old-wordpress-child-theme-for-php-8\/"},"wordCount":1023,"commentCount":0,"image":{"@id":"https:\/\/hoja.in\/blog\/cleaning-up-an-old-wordpress-child-theme-for-php-8\/#primaryimage"},"thumbnailUrl":"https:\/\/hoja.in\/blog\/wp-content\/uploads\/2026\/10\/cleaning-up-an-old-wordpress-child-theme-for-php-8.jpg","keywords":["CSS","JavaScript","PHP 8","WordPress"],"articleSection":["WordPress"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/hoja.in\/blog\/cleaning-up-an-old-wordpress-child-theme-for-php-8\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/hoja.in\/blog\/cleaning-up-an-old-wordpress-child-theme-for-php-8\/","url":"https:\/\/hoja.in\/blog\/cleaning-up-an-old-wordpress-child-theme-for-php-8\/","name":"Cleaning up an old WordPress child theme for PHP 8","isPartOf":{"@id":"https:\/\/hoja.in\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/hoja.in\/blog\/cleaning-up-an-old-wordpress-child-theme-for-php-8\/#primaryimage"},"image":{"@id":"https:\/\/hoja.in\/blog\/cleaning-up-an-old-wordpress-child-theme-for-php-8\/#primaryimage"},"thumbnailUrl":"https:\/\/hoja.in\/blog\/wp-content\/uploads\/2026\/10\/cleaning-up-an-old-wordpress-child-theme-for-php-8.jpg","datePublished":"2026-11-12T15:00:00+00:00","author":{"@id":"https:\/\/hoja.in\/blog\/#\/schema\/person\/e6fbd54c2061674d8ea3e7861d858c7b"},"description":"Audit an old WordPress child theme: find unused bundled assets, enqueue styles with wp_enqueue_style, drop copied parent templates and test with WP_DEBUG.","breadcrumb":{"@id":"https:\/\/hoja.in\/blog\/cleaning-up-an-old-wordpress-child-theme-for-php-8\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/hoja.in\/blog\/cleaning-up-an-old-wordpress-child-theme-for-php-8\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/hoja.in\/blog\/cleaning-up-an-old-wordpress-child-theme-for-php-8\/#primaryimage","url":"https:\/\/hoja.in\/blog\/wp-content\/uploads\/2026\/10\/cleaning-up-an-old-wordpress-child-theme-for-php-8.jpg","contentUrl":"https:\/\/hoja.in\/blog\/wp-content\/uploads\/2026\/10\/cleaning-up-an-old-wordpress-child-theme-for-php-8.jpg","width":1200,"height":630,"caption":"Spring cleaning a 2015 theme"},{"@type":"BreadcrumbList","@id":"https:\/\/hoja.in\/blog\/cleaning-up-an-old-wordpress-child-theme-for-php-8\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/hoja.in\/blog\/"},{"@type":"ListItem","position":2,"name":"Cleaning up an old WordPress child theme for PHP 8"}]},{"@type":"WebSite","@id":"https:\/\/hoja.in\/blog\/#website","url":"https:\/\/hoja.in\/blog\/","name":"Hoja Mustaffa Abdul Latheef \u00e2\u20ac\u201c Blog","description":"Notes from daily work with TYPO3, PHP and AI-assisted engineering","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/hoja.in\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/hoja.in\/blog\/#\/schema\/person\/e6fbd54c2061674d8ea3e7861d858c7b","name":"Hoja Mustaffa Abdul Latheef","description":"Senior TYPO3 Developer at jweiland.net, TYPO3 CMS Certified Developer. I write about TYPO3 upgrades, extension development, PHP and AI-assisted engineering with Claude Code.","sameAs":["https:\/\/hoja.in\/"],"url":"https:\/\/hoja.in\/blog\/author\/hoja\/"}]}},"_links":{"self":[{"href":"https:\/\/hoja.in\/blog\/wp-json\/wp\/v2\/posts\/132","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hoja.in\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hoja.in\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hoja.in\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/hoja.in\/blog\/wp-json\/wp\/v2\/comments?post=132"}],"version-history":[{"count":1,"href":"https:\/\/hoja.in\/blog\/wp-json\/wp\/v2\/posts\/132\/revisions"}],"predecessor-version":[{"id":189,"href":"https:\/\/hoja.in\/blog\/wp-json\/wp\/v2\/posts\/132\/revisions\/189"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/hoja.in\/blog\/wp-json\/wp\/v2\/media\/133"}],"wp:attachment":[{"href":"https:\/\/hoja.in\/blog\/wp-json\/wp\/v2\/media?parent=132"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hoja.in\/blog\/wp-json\/wp\/v2\/categories?post=132"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hoja.in\/blog\/wp-json\/wp\/v2\/tags?post=132"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}