This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Error-handler to be used as a mu-plugin. | |
* | |
* @package kagg/compatibility | |
*/ | |
// phpcs:disable Generic.Commenting.DocComment.MissingShort | |
/** @noinspection PhpIllegalPsrClassPathInspection */ | |
/** @noinspection AutoloadingIssuesInspection */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Load a template part into a template | |
* | |
* @param string $slug The slug name for the generic template. | |
* @param string $name The name of the specialised template. | |
* @param array $params Any extra params to be passed to the template part. | |
*/ | |
function get_template_part_extended( $slug, $name = null, $params = array() ) { | |
if ( ! empty( $params ) ) { |