← All changes
|
modules/theme-tools/content-options/post-details.php
+12
-0
13.8.3
→
16.3-a.5
View file →
| @@ -4,14 +4,21 @@ | ||
| 4 | 4 | * |
| 5 | 5 | * @package automattic/jetpack |
| 6 | 6 | */ |
| 7 | 7 | |
| 8 | +if ( ! defined( 'ABSPATH' ) ) { | |
| 9 | + exit( 0 ); | |
| 10 | +} | |
| 11 | + | |
| 8 | 12 | if ( ! function_exists( 'jetpack_post_details_enqueue_scripts' ) ) { |
| 9 | 13 | |
| 10 | 14 | /** |
| 11 | 15 | * The function to include Post Details in a theme's stylesheet. |
| 16 | + * | |
| 17 | + * @deprecated 13.9 Moved to Classic Theme Helper package. | |
| 12 | 18 | */ |
| 13 | 19 | function jetpack_post_details_enqueue_scripts() { |
| 20 | + _deprecated_function( __FUNCTION__, 'jetpack-13.9' ); | |
| 14 | 21 | // Make sure we can proceed. |
| 15 | 22 | list( $should_run, $options, $definied, $post_details ) = jetpack_post_details_should_run(); |
| 16 | 23 | |
| 17 | 24 | if ( ! $should_run ) { |
| @@ -70,11 +77,13 @@ | ||
| 70 | 77 | |
| 71 | 78 | /** |
| 72 | 79 | * Adds custom classes to the array of body classes. |
| 73 | 80 | * |
| 81 | + * @deprecated 13.9 Moved to Classic Theme Helper package. | |
| 74 | 82 | * @param array $classes Classes for the body element. |
| 75 | 83 | */ |
| 76 | 84 | function jetpack_post_details_body_classes( $classes ) { |
| 85 | + _deprecated_function( __FUNCTION__, 'jetpack-13.9' ); | |
| 77 | 86 | // Make sure we can proceed. |
| 78 | 87 | list( $should_run, $options, $definied ) = jetpack_post_details_should_run(); |
| 79 | 88 | |
| 80 | 89 | if ( ! $should_run ) { |
| @@ -118,10 +127,13 @@ | ||
| 118 | 127 | if ( ! function_exists( 'jetpack_post_details_should_run' ) ) { |
| 119 | 128 | |
| 120 | 129 | /** |
| 121 | 130 | * Determines if Post Details should run. |
| 131 | + * | |
| 132 | + * @deprecated 13.9 Moved to Classic Theme Helper package. | |
| 122 | 133 | */ |
| 123 | 134 | function jetpack_post_details_should_run() { |
| 135 | + _deprecated_function( __FUNCTION__, 'jetpack-13.9' ); | |
| 124 | 136 | // Empty value representing falsy return value. |
| 125 | 137 | $void = array( false, null, null, null ); |
| 126 | 138 | |
| 127 | 139 | // If the theme doesn't support 'jetpack-content-options', don't continue. |