|
Server : LiteSpeed System : Linux srv526460274 5.15.0-164-generic #174-Ubuntu SMP Fri Nov 14 20:25:16 UTC 2025 x86_64 User : kerao9884 ( 1082) PHP Version : 8.0.30 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare, Directory : /home/token55.net/public_html/wp-content/plugins/amp/back-compat/ |
Upload File : |
<?php
/**
* Functions for managing legacy templates
*
* @package AMP
*/
/**
* Add hooks to use legacy AMP post templates from before v0.4.
*
* If you want to use the template that shipped with v0.3 and earlier, you can use this to force that.
* Note that this may not stick around forever, so use caution and `function_exists`.
*
* Note that the old legacy post templates from AMP plugin v0.3 should no longer be used. Update to using
* the current AMP legacy post templates or better yet switch to using a full Reader theme.
*
* @deprecated Use Reader themes instead of old legacy AMP post templates.
* @since 0.4
*/
function amp_backcompat_use_v03_templates() {
_deprecated_function( __FUNCTION__, '2.0' );
add_filter( 'amp_customizer_is_enabled', '__return_false' );
add_filter( 'amp_post_template_dir', '_amp_backcompat_use_v03_templates_callback', 0 ); // Early in case there are other overrides.
}
/**
* Callback for getting the legacy templates directory.
*
* @internal
* @deprecated
*
* @param string $templates Template directory.
* @return string Legacy template directory.
*/
function _amp_backcompat_use_v03_templates_callback( $templates ) {
return AMP__DIR__ . '/back-compat/templates-v0-3';
}