File manager - Edit - /home/aresglob/public_html/wp/wp-includes/images/smilies/deprecated.tar
Back
deprecated-filters.php 0000644 00000016321 15100111327 0011015 0 ustar 00 <?php /** * Deprecated Filters of Astra Theme. * * @package Astra * @link https://wpastra.com/ * @since Astra 1.0.23 */ if ( ! defined( 'ABSPATH' ) ) { exit; } // Deprecating astra_color_palletes filter. add_filter( 'astra_color_palettes', 'astra_deprecated_color_palette', 10, 1 ); /** * Astra Color Palettes * * @since 1.0.23 * @param array $color_palette customizer color palettes. * @return array $color_palette updated customizer color palettes. */ function astra_deprecated_color_palette( $color_palette ) { return astra_apply_filters_deprecated( 'astra_color_palletes', array( $color_palette ), '1.0.22', 'astra_color_palettes', '' ); } // Deprecating astra_sigle_post_navigation_enabled filter. add_filter( 'astra_single_post_navigation_enabled', 'astra_deprecated_sigle_post_navigation_enabled', 10, 1 ); /** * Astra Single Post Navigation * * @since 1.0.27 * @param bool $post_nav true | false. * @return bool $post_nav true for enabled | false for disable. */ function astra_deprecated_sigle_post_navigation_enabled( $post_nav ) { return astra_apply_filters_deprecated( 'astra_sigle_post_navigation_enabled', array( $post_nav ), '1.0.27', 'astra_single_post_navigation_enabled', '' ); } // Deprecating astra_primary_header_main_rt_section filter. add_filter( 'astra_header_section_elements', 'astra_deprecated_primary_header_main_rt_section', 10, 2 ); /** * Astra Header elements. * * @since 1.2.2 * @param array $elements List of elements. * @param string $header Header section type. * @return array */ function astra_deprecated_primary_header_main_rt_section( $elements, $header ) { return astra_apply_filters_deprecated( 'astra_primary_header_main_rt_section', array( $elements, $header ), '1.2.2', 'astra_header_section_elements', '' ); } if ( ! function_exists( 'astra_apply_filters_deprecated' ) ) { /** * Astra Filter Deprecated * * @since 1.1.1 * @param string $tag The name of the filter hook. * @param array $args Array of additional function arguments to be passed to apply_filters(). * @param string $version The version of WordPress that deprecated the hook. * @param string $replacement Optional. The hook that should have been used. Default false. * @param string $message Optional. A message regarding the change. Default null. */ function astra_apply_filters_deprecated( $tag, $args, $version, $replacement = false, $message = null ) { if ( function_exists( 'apply_filters_deprecated' ) ) { /* WP >= 4.6 */ return apply_filters_deprecated( $tag, $args, $version, $replacement, $message ); } return apply_filters_ref_array( $tag, $args ); // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.DynamicHooknameFound } } // Deprecating ast_footer_bar_display filter. add_filter( 'astra_footer_bar_display', 'astra_deprecated_ast_footer_bar_display_filter', 10, 1 ); /** * Display footer builder markup. * * @since 3.7.4 * @param bool $display_footer true | false. * @return bool true for enabled | false for disable. */ function astra_deprecated_ast_footer_bar_display_filter( $display_footer ) { return astra_apply_filters_deprecated( 'ast_footer_bar_display', array( $display_footer ), '3.7.4', 'astra_footer_bar_display', '' ); } // Deprecating ast_main_header_display filter. add_filter( 'astra_main_header_display', 'astra_deprecated_ast_main_header_display_filter', 10, 1 ); /** * Display header builder markup. * * @since 3.7.4 * @param bool $display_header true | false. * @return bool true for enabled | false for disable. */ function astra_deprecated_ast_main_header_display_filter( $display_header ) { return astra_apply_filters_deprecated( 'ast_main_header_display', array( $display_header ), '3.7.4', 'astra_main_header_display', '' ); } // Deprecating secondary_submenu_border_class filter. add_filter( 'astra_secondary_submenu_border_class', 'astra_deprecated_secondary_submenu_border_class_filter', 10, 1 ); /** * Border class to secondary submenu * * @since 3.7.4 * @param string $class_selector custom class assigned to secondary submenu. * @return string $class_selector updated class selector. */ function astra_deprecated_secondary_submenu_border_class_filter( $class_selector ) { return astra_apply_filters_deprecated( 'secondary_submenu_border_class', array( $class_selector ), '3.7.4', 'astra_secondary_submenu_border_class', '' ); } // Deprecating gtn_image_group_css_comp filter. add_filter( 'astra_gutenberg_image_group_style_support', 'astra_deprecated_gtn_image_group_css_comp_filter', 10, 1 ); /** * Image, group compatibility support released in v2.4.4. * * @since 3.7.4 * @param bool $block_support true | false. * @return bool true for enabled | false for disable. */ function astra_deprecated_gtn_image_group_css_comp_filter( $block_support ) { return astra_apply_filters_deprecated( 'gtn_image_group_css_comp', array( $block_support ), '3.7.4', 'astra_gutenberg_image_group_style_support', '' ); } // Deprecating ast_footer_sml_layout filter. add_filter( 'astra_footer_sml_layout', 'astra_deprecated_ast_footer_sml_layout_filter', 10, 1 ); /** * Footer bar meta setting option. * * @since 3.7.4 * @param bool $display_footer_bar true | false. * @return bool true for enabled | false for disable. */ function astra_deprecated_ast_footer_sml_layout_filter( $display_footer_bar ) { return astra_apply_filters_deprecated( 'ast_footer_sml_layout', array( $display_footer_bar ), '3.7.4', 'astra_footer_sml_layout', '' ); } // Deprecating primary_submenu_border_class filter. add_filter( 'astra_primary_submenu_border_class', 'astra_deprecated_primary_submenu_border_class_filter', 10, 1 ); /** * Border class to primary submenu * * @since 3.7.4 * @param string $class_selector custom class assigned to primary submenu. * @return string $class_selector updated class selector. */ function astra_deprecated_primary_submenu_border_class_filter( $class_selector ) { return astra_apply_filters_deprecated( 'primary_submenu_border_class', array( $class_selector ), '3.7.4', 'astra_primary_submenu_border_class', '' ); } // Deprecating astra_single_banner_post_meta filter. add_filter( 'astra_single_post_meta', 'astra_deprecated_astra_single_banner_post_meta_filter', 10, 1 ); /** * Single meta markup filter. * * @since 4.0.2 * @param string $meta_markup Markup of meta. * @return string $meta_markup Markup of meta. */ function astra_deprecated_astra_single_banner_post_meta_filter( $meta_markup ) { return astra_apply_filters_deprecated( 'astra_single_banner_post_meta', array( $meta_markup ), '4.0.2', 'astra_single_post_meta', '' ); } // Deprecating astra_get_option_dynamic-blog-layouts filter. add_filter( 'astra_get_option_dynamic_blog_layouts', 'astra_deprecated_astra_get_option_dynamic_blog_layouts_filter', 10, 1 ); /** * Don't apply direct new layouts to legacy users. * * @since 4.1.0 * @param string $dynamic_blog_layout false if it is an existing user , true if not. * @return bool $dynamic_blog_layout false if it is an existing user , true if not. */ function astra_deprecated_astra_get_option_dynamic_blog_layouts_filter( $dynamic_blog_layout ) { return astra_apply_filters_deprecated( 'astra_get_option_dynamic-blog-layouts', array( $dynamic_blog_layout ), '4.1.0', 'astra_get_option_dynamic_blog_layouts', '' ); } deprecated-hooks.php 0000644 00000007140 15100111327 0010467 0 ustar 00 <?php /** * Deprecated Hooks of Astra Theme. * * @package Astra * @link https://wpastra.com/ * @since Astra 1.0.23 */ if ( ! defined( 'ABSPATH' ) ) { exit; } if ( ! function_exists( 'astra_do_action_deprecated' ) ) { /** * Astra Filter Deprecated * * @since 1.1.1 * @param string $tag The name of the filter hook. * @param array $args Array of additional function arguments to be passed to apply_filters(). * @param string $version The version of WordPress that deprecated the hook. * @param string $replacement Optional. The hook that should have been used. Default false. * @param string $message Optional. A message regarding the change. Default null. */ function astra_do_action_deprecated( $tag, $args, $version, $replacement = false, $message = null ) { if ( function_exists( 'do_action_deprecated' ) ) { /* WP >= 4.6 */ do_action_deprecated( $tag, $args, $version, $replacement, $message ); } else { do_action_ref_array( $tag, $args ); // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.DynamicHooknameFound } } } // Depreciating asta_register_admin_menu hook. add_action( 'astra_register_admin_menu', 'astra_deprecated_asta_register_admin_menu_hook', 10, 5 ); /** * Depreciating 'asta_register_admin_menu' action & replacing with 'astra_register_admin_menu'. * * @param string $parent_page Admin menu page. * @param string $page_title The text to be displayed in the title tags of the page when the menu is selected. * @param string $capability The capability required for this menu to be displayed to the user. * @param string $page_menu_slug The slug name to refer to this menu by (should be unique for this menu). * @param callable $page_menu_func The function to be called to output the content for this page. * * @since 3.7.4 */ function astra_deprecated_asta_register_admin_menu_hook( $parent_page, $page_title, $capability, $page_menu_slug, $page_menu_func ) { astra_do_action_deprecated( 'asta_register_admin_menu', array( $parent_page, $page_title, $capability, $page_menu_slug, $page_menu_func ), '3.7.4', 'astra_register_admin_menu' ); } /** * Actions which are deprecated in admin redesign phase. * * @since 4.0.0 */ function astra_show_deprecated_admin_hooks_warnings() { global $pagenow; $screen = get_current_screen(); if ( 'admin.php' === $pagenow && is_object( $screen ) && 'toplevel_page_' . Astra_Menu::get_theme_page_slug() === $screen->id ) { astra_do_action_deprecated( 'astra_welcome_page_content_before', array(), '4.0.0' ); astra_do_action_deprecated( 'astra_welcome_page_content', array(), '4.0.0' ); astra_do_action_deprecated( 'astra_welcome_page_content_after', array(), '4.0.0' ); astra_do_action_deprecated( 'astra_welcome_page_right_sidebar_before', array(), '4.0.0' ); astra_do_action_deprecated( 'astra_welcome_page_right_sidebar_content', array(), '4.0.0' ); astra_do_action_deprecated( 'astra_welcome_page_right_sidebar_after', array(), '4.0.0' ); astra_do_action_deprecated( 'astra_single_post_order_before', array(), '4.0.0' ); astra_do_action_deprecated( 'astra_single_post_title_before', array(), '4.0.0' ); astra_do_action_deprecated( 'astra_single_post_title_after', array(), '4.0.0' ); astra_do_action_deprecated( 'astra_single_post_meta_before', array(), '4.0.0' ); astra_do_action_deprecated( 'astra_single_post_meta_after', array(), '4.0.0' ); astra_do_action_deprecated( 'astra_single_post_order_after', array(), '4.0.0' ); } } // Depreciating legacy admin hooks. add_action( 'admin_notices', 'astra_show_deprecated_admin_hooks_warnings', 999 ); deprecated-functions.php 0000644 00000015304 15100111327 0011355 0 ustar 00 <?php /** * Deprecated Functions of Astra Theme. * * @package Astra * @link https://wpastra.com/ * @since Astra 1.0.23 */ if ( ! defined( 'ABSPATH' ) ) { exit; } /** * Deprecating footer_menu_static_css function. * * Footer menu specific static CSS function. * * @since 3.7.4 * @deprecated footer_menu_static_css() Use astra_footer_menu_static_css() * @see astra_footer_menu_static_css() * * @return string Parsed CSS */ function footer_menu_static_css() { _deprecated_function( __FUNCTION__, '3.7.4', 'astra_footer_menu_static_css()' ); return astra_footer_menu_static_css(); } /** * Deprecating is_support_footer_widget_right_margin function. * * Backward managing function based on flag - 'support-footer-widget-right-margin' which fixes right margin issue in builder widgets. * * @since 3.7.4 * @deprecated is_support_footer_widget_right_margin() Use astra_support_footer_widget_right_margin() * @see astra_support_footer_widget_right_margin() * * @return bool true|false */ function is_support_footer_widget_right_margin() { _deprecated_function( __FUNCTION__, '3.7.4', 'astra_support_footer_widget_right_margin()' ); return astra_support_footer_widget_right_margin(); } /** * Deprecating prepare_button_defaults function. * * Default configurations for builder button components. * * @since 3.7.4 * @deprecated prepare_button_defaults() Use astra_prepare_button_defaults() * @param array $defaults Button default configs. * @param string $index builder button component index. * @see astra_prepare_button_defaults() * * @return array */ function prepare_button_defaults( $defaults, $index ) { _deprecated_function( __FUNCTION__, '3.7.4', 'astra_prepare_button_defaults()' ); return astra_prepare_button_defaults( $defaults, absint( $index ) ); } /** * Deprecating prepare_html_defaults function. * * Default configurations for builder HTML components. * * @since 3.7.4 * @deprecated prepare_html_defaults() Use astra_prepare_html_defaults() * @param array $defaults HTML default configs. * @param string $index builder HTML component index. * @see astra_prepare_html_defaults() * * @return array */ function prepare_html_defaults( $defaults, $index ) { _deprecated_function( __FUNCTION__, '3.7.4', 'astra_prepare_html_defaults()' ); return astra_prepare_html_defaults( $defaults, absint( $index ) ); } /** * Deprecating prepare_social_icon_defaults function. * * Default configurations for builder Social Icon components. * * @since 3.7.4 * @deprecated prepare_social_icon_defaults() Use astra_prepare_social_icon_defaults() * @param array $defaults Social Icon default configs. * @param string $index builder Social Icon component index. * @see astra_prepare_social_icon_defaults() * * @return array */ function prepare_social_icon_defaults( $defaults, $index ) { _deprecated_function( __FUNCTION__, '3.7.4', 'astra_prepare_social_icon_defaults()' ); return astra_prepare_social_icon_defaults( $defaults, absint( $index ) ); } /** * Deprecating prepare_widget_defaults function. * * Default configurations for builder Widget components. * * @since 3.7.4 * @deprecated prepare_widget_defaults() Use astra_prepare_widget_defaults() * @param array $defaults Widget default configs. * @param string $index builder Widget component index. * @see astra_prepare_widget_defaults() * * @return array */ function prepare_widget_defaults( $defaults, $index ) { _deprecated_function( __FUNCTION__, '3.7.4', 'astra_prepare_widget_defaults()' ); return astra_prepare_widget_defaults( $defaults, absint( $index ) ); } /** * Deprecating prepare_menu_defaults function. * * Default configurations for builder Menu components. * * @since 3.7.4 * @deprecated prepare_menu_defaults() Use astra_prepare_menu_defaults() * @param array $defaults Menu default configs. * @param string $index builder Menu component index. * @see astra_prepare_menu_defaults() * * @return array */ function prepare_menu_defaults( $defaults, $index ) { _deprecated_function( __FUNCTION__, '3.7.4', 'astra_prepare_menu_defaults()' ); return astra_prepare_menu_defaults( $defaults, absint( $index ) ); } /** * Deprecating prepare_divider_defaults function. * * Default configurations for builder Divider components. * * @since 3.7.4 * @deprecated prepare_divider_defaults() Use astra_prepare_divider_defaults() * @param array $defaults Divider default configs. * @param string $index builder Divider component index. * @see astra_prepare_divider_defaults() * * @return array */ function prepare_divider_defaults( $defaults, $index ) { _deprecated_function( __FUNCTION__, '3.7.4', 'astra_prepare_divider_defaults()' ); return astra_prepare_divider_defaults( $defaults, absint( $index ) ); } /** * Deprecating is_astra_pagination_enabled function. * * Checking if Astra's pagination enabled. * * @since 3.7.4 * @deprecated is_astra_pagination_enabled() Use astra_check_pagination_enabled() * @see astra_check_pagination_enabled() * * @return bool true|false */ function is_astra_pagination_enabled() { _deprecated_function( __FUNCTION__, '3.7.4', 'astra_check_pagination_enabled()' ); return astra_check_pagination_enabled(); } /** * Deprecating is_current_post_comment_enabled function. * * Checking if current post's comment enabled and comment section is open. * * @since 3.7.4 * @deprecated is_current_post_comment_enabled() Use astra_check_current_post_comment_enabled() * @see astra_check_current_post_comment_enabled() * * @return bool true|false */ function is_current_post_comment_enabled() { _deprecated_function( __FUNCTION__, '3.7.4', 'astra_check_current_post_comment_enabled()' ); return astra_check_current_post_comment_enabled(); } /** * Deprecating ast_load_preload_local_fonts function. * * Preload Google Fonts - Feature of self-hosting font. * * @since 3.7.4 * @deprecated ast_load_preload_local_fonts() Use astra_load_preload_local_fonts() * @param string $google_font_url Google Font URL generated by customizer config. * @see astra_load_preload_local_fonts() * * @return string */ function ast_load_preload_local_fonts( $google_font_url ) { _deprecated_function( __FUNCTION__, '3.7.4', 'astra_load_preload_local_fonts()' ); return astra_load_preload_local_fonts( $google_font_url ); } /** * Deprecating ast_get_webfont_url function. * * Getting webfont based Google font URL. * * @since 3.7.4 * @deprecated ast_get_webfont_url() Use astra_get_webfont_url() * @param string $google_font_url Google Font URL generated by customizer config. * @see astra_get_webfont_url() * * @return string */ function ast_get_webfont_url( $google_font_url ) { _deprecated_function( __FUNCTION__, '3.7.4', 'astra_get_webfont_url()' ); return astra_get_webfont_url( $google_font_url ); }
| ver. 1.4 |
Github
|
.
| PHP 8.1.33 | Generation time: 0 |
proxy
|
phpinfo
|
Settings