                $lesson
            ) === false
        ) {

            $result['status'] =
                'lesson_save_failed';

            $result['failed_lesson'] =
                $lesson['id'];

            return
                '<pre style="white-space:pre-wrap;">' .
                esc_html(
                    print_r(
                        $result,
                        true
                    )
                ) .
                '</pre>';

        }


        $result['created']['lessons'][] =
            $lesson['id'];

    }


    /*
    |--------------------------------------------------------------------------
    | Curriculum
    |--------------------------------------------------------------------------
    */


    foreach (
        $curriculum
        as $node
    ) {

        if (
            tsc_save_curriculum_node(
                $node
            ) === false
        ) {

            $result['status'] =
                'curriculum_save_failed';

            $result['failed_curriculum_node'] =
                $node['id'];

            return
                '<pre style="white-space:pre-wrap;">' .
                esc_html(
                    print_r(
                        $result,
                        true
                    )
                ) .
                '</pre>';

        }


        $result['created']['curriculum'][] =
            $node['id'];

    }


    /*
    |--------------------------------------------------------------------------
    | Success
    |--------------------------------------------------------------------------
    */


    $result['success'] =
        true;

    $result['status'] =
        'course_11_provisioned';

    $result['message'] =
        'Course 11 production content was provisioned successfully.';


    return
        '<pre style="white-space:pre-wrap;">' .
        esc_html(
            print_r(
                $result,
                true
            )
        ) .
        '</pre>';

}


/*
|--------------------------------------------------------------------------
| Phase 15F.284 Safety Boundary
|--------------------------------------------------------------------------
|
| Deliberately NO provisioning shortcode.
|--------------------------------------------------------------------------
*/


        echo '<th style="border:1px solid #ccc;padding:6px;text-align:left;">';
        echo esc_html($heading);
        echo '</th>';

    }


    echo '</tr></thead>';


    echo '<tbody>';


    foreach (
        $rows
        as $row
    ) {

        echo '<tr>';


        echo '<td style="border:1px solid #ccc;padding:6px;">';
        echo esc_html(
            $row['name']
        );
        echo '</td>';


        echo '<td style="border:1px solid #ccc;padding:6px;"><strong>';
        echo esc_html(
            $row['result']
        );
        echo '</strong></td>';


        echo '<td style="border:1px solid #ccc;padding:6px;">';
        echo esc_html(
            $row['expected']
        );
        echo '</td>';


        echo '<td style="border:1px solid #ccc;padding:6px;">';
        echo esc_html(
            $row['actual']
        );
        echo '</td>';


        echo '</tr>';

    }


    echo '</tbody>';

    echo '</table>';


    echo '<hr>';


    echo '<p><strong>TOTAL PASS:</strong> ';
    echo esc_html(
        (string)
        $pass
    );
    echo '</p>';


    echo '<p><strong>TOTAL FAIL:</strong> ';
    echo esc_html(
        (string)
        $fail
    );
    echo '</p>';


    echo '<p><strong>RESULT:</strong> ';
    echo esc_html(
        $fail === 0
            ? 'PASS'
            : 'FAIL'
    );
    echo '</p>';


    echo '<p><strong>Writes performed:</strong> NO</p>';


    echo '<p><strong>D11 persistence authorized:</strong> ';
    echo esc_html(
        $fail === 0
            ? 'YES'
            : 'NO'
    );
    echo '</p>';


    return
        ob_get_clean();

}


/*
|--------------------------------------------------------------------------
| Diagnostic Shortcode
|--------------------------------------------------------------------------
*/

add_shortcode(
    'tsc_diagnostic_15f292a',
    'tsc_diagnostic_15f292a_shortcode'
);
<?xml version="1.0" encoding="UTF-8"?><?xml-stylesheet type="text/xsl" href="//thespeakingcats.com/wp-content/plugins/wordpress-seo/css/main-sitemap.xsl"?>
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
	<sitemap>
		<loc>https://thespeakingcats.com/post-sitemap.xml</loc>
		<lastmod>2023-08-27T14:38:30+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://thespeakingcats.com/page-sitemap.xml</loc>
		<lastmod>2026-09-24T15:09:12+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://thespeakingcats.com/lp_course-sitemap.xml</loc>
		<lastmod>2023-10-15T09:59:25+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://thespeakingcats.com/lp_lesson-sitemap.xml</loc>
		<lastmod>2022-10-28T11:38:29+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://thespeakingcats.com/lp_lesson-sitemap2.xml</loc>
		<lastmod>2022-10-28T11:38:29+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://thespeakingcats.com/lp_quiz-sitemap.xml</loc>
		<lastmod>2020-12-07T21:23:14+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://thespeakingcats.com/lp_question-sitemap.xml</loc>
		<lastmod>2020-09-12T14:12:05+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://thespeakingcats.com/product-sitemap.xml</loc>
		<lastmod>2026-01-20T14:58:13+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://thespeakingcats.com/qsm_quiz-sitemap.xml</loc>
		<lastmod>2024-04-08T20:24:25+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://thespeakingcats.com/category-sitemap.xml</loc>
		<lastmod>2023-08-27T14:38:30+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://thespeakingcats.com/product_cat-sitemap.xml</loc>
		<lastmod>2026-01-20T14:58:13+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://thespeakingcats.com/course_category-sitemap.xml</loc>
		<lastmod>2023-10-15T09:59:25+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://thespeakingcats.com/author-sitemap.xml</loc>
		<lastmod>2026-01-31T00:57:12+00:00</lastmod>
	</sitemap>
</sitemapindex>
<!-- XML Sitemap generated by Yoast SEO -->