PluginProbe
Polylang / 3.1.4
Polylang v3.1.4
3.8.9 3.8.8 3.8.7 3.8.6 3.8.5 3.8.4 3.8.3 2.7 2.7.0.1 2.7.1 2.7.2 2.7.3 2.7.4 2.8 2.8.1 2.8.2 2.8.3 2.8.4 2.9 2.9.1 2.9.2 3.0 3.0.1 3.0.2 3.0.3 All 233 releases
← All changes | include/functions.php +2 -47 2.8.33.1.4 View file →
@@ -41,59 +41,14 @@
41 41 return get_page_by_path( $page_path, $output, $post_type ); // phpcs:ignore WordPressVIPMinimum.Functions.RestrictedFunctions.get_page_by_path_get_page_by_path
42 42 }
43 43 }
44 44
45 -if ( ! function_exists( 'wp_doing_ajax' ) ) {
46 - /**
47 - * Determines whether the current request is a WordPress Ajax request.
48 - * Backward compatibility function for WP < 4.7
49 - *
50 - * @since 2.2
51 - *
52 - * @return bool True if it's a WordPress Ajax request, false otherwise.
53 - */
54 - function wp_doing_ajax() {
55 - /** This filter is documented in wp-includes/load.php */
56 - return apply_filters( 'wp_doing_ajax', defined( 'DOING_AJAX' ) && DOING_AJAX );
57 - }
58 -}
59 -
60 -if ( ! function_exists( 'wp_doing_cron' ) ) {
61 - /**
62 - * Determines whether the current request is a WordPress cron request.
63 - * Backward compatibility function for WP < 4.8
64 - *
65 - * @since 2.6
66 - *
67 - * @return bool True if it's a WordPress cron request, false otherwise.
68 - */
69 - function wp_doing_cron() {
70 - /** This filter is documented in wp-includes/load.php */
71 - return apply_filters( 'wp_doing_cron', defined( 'DOING_CRON' ) && DOING_CRON );
72 - }
73 -}
74 -
75 -if ( ! function_exists( 'wp_using_themes' ) ) {
76 - /**
77 - * Determines whether the current request should use themes.
78 - * Backward compatibility function for WP < 5.1
79 - *
80 - * @since 2.6
81 - *
82 - * @return bool True if themes should be used, false otherwise.
83 - */
84 - function wp_using_themes() {
85 - /** This filter is documented in wp-includes/load.php */
86 - return apply_filters( 'wp_using_themes', defined( 'WP_USE_THEMES' ) && WP_USE_THEMES );
87 - }
88 -}
89 -
90 45 /**
91 46 * Determines whether we should load the cache compatibility
92 47 *
93 48 * @since 2.3.8
94 49 *
95 - * return bool True if the cache compatibility must be loaded
50 + * @return bool True if the cache compatibility must be loaded
96 51 */
97 52 function pll_is_cache_active() {
98 53 /**
99 54 * Filters whether we should load the cache compatibility
@@ -139,9 +94,9 @@
139 94 * Determines whether we should load the block editor plugin or the legacy languages metabox.
140 95 *
141 96 * @since 2.6.0
142 97 *
143 - * return bool True to use the block editor plugin.
98 + * @return bool True to use the block editor plugin.
144 99 */
145 100 function pll_use_block_editor_plugin() {
146 101 /**
147 102 * Filters whether we should load the block editor plugin or the legacy languages metabox.