You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
720 B
34 lines
720 B
5 years ago
|
<?php
|
||
|
/**
|
||
|
* Callbacks for adding AMP-related things to the main theme.
|
||
|
*
|
||
|
* @deprecated Function in this file has been moved to amp-helper-functions.php.
|
||
|
* @package AMP
|
||
|
*/
|
||
|
|
||
|
_deprecated_file(
|
||
|
__FILE__,
|
||
|
'1.0',
|
||
|
null,
|
||
|
sprintf(
|
||
|
/* translators: 1: amp_add_amphtml_link(). 2: amp-helper-functions.php */
|
||
|
esc_html__( 'Use %1$s function which is already included from %2$s', 'amp' ),
|
||
|
'amp_add_amphtml_link()',
|
||
|
'amp-helper-functions.php'
|
||
|
)
|
||
|
);
|
||
|
|
||
|
/**
|
||
|
* Add amphtml link to frontend.
|
||
|
*
|
||
|
* @deprecated
|
||
|
*
|
||
|
* @since 0.2
|
||
|
* @since 1.0 Deprecated
|
||
|
* @see amp_add_amphtml_link()
|
||
|
*/
|
||
|
function amp_frontend_add_canonical() {
|
||
|
_deprecated_function( __FUNCTION__, '1.0', 'amp_add_amphtml_link' );
|
||
|
amp_add_amphtml_link();
|
||
|
}
|