golden hour
/var/www/html/wp-content/plugins/the-events-calendar/common/src/Tribe
⬆️ Go Up
Upload
File/Folder
Size
Actions
Abstract_Deactivation.php
1.65 KB
Del
OK
Abstract_Plugin_Register.php
1.25 KB
Del
OK
Admin
-
Del
OK
Ajax
-
Del
OK
App_Shop.php
9.87 KB
Del
OK
Asset
-
Del
OK
Assets.php
24.69 KB
Del
OK
Assets_Pipeline.php
1.7 KB
Del
OK
Autoloader.php
8.31 KB
Del
OK
Cache.php
18.13 KB
Del
OK
Cache_Listener.php
5.92 KB
Del
OK
Changelog_Reader.php
1.5 KB
Del
OK
Container.php
11.36 KB
Del
OK
Context
-
Del
OK
Context.php
48.65 KB
Del
OK
Cost_Utils.php
16.44 KB
Del
OK
Credits.php
2.9 KB
Del
OK
Customizer
-
Del
OK
Customizer.php
25.29 KB
Del
OK
DB_Lock.php
10.04 KB
Del
OK
Data.php
5.21 KB
Del
OK
Date_Utils.php
48.59 KB
Del
OK
Db.php
876 B
Del
OK
Debug.php
1.54 KB
Del
OK
Debug_Bar
-
Del
OK
Dependency.php
16.47 KB
Del
OK
Deprecation.php
4.84 KB
Del
OK
Dialog
-
Del
OK
Documentation
-
Del
OK
Duplicate
-
Del
OK
Editor
-
Del
OK
Editor.php
6.58 KB
Del
OK
Error.php
4.51 KB
Del
OK
Exception.php
2.08 KB
Del
OK
Extension.php
13 KB
Del
OK
Extension_Loader.php
3.96 KB
Del
OK
Feature_Detection.php
7.51 KB
Del
OK
Field.php
22.38 KB
Del
OK
Field_Conditional.php
2.37 KB
Del
OK
Freemius.php
1.34 KB
Del
OK
Image
-
Del
OK
JSON_LD
-
Del
OK
Languages
-
Del
OK
Log
-
Del
OK
Log.php
11.33 KB
Del
OK
Main.php
23.13 KB
Del
OK
Meta
-
Del
OK
Models
-
Del
OK
Notices.php
1.49 KB
Del
OK
PUE
-
Del
OK
Plugin_Meta_Links.php
3.45 KB
Del
OK
Plugins.php
5.32 KB
Del
OK
Plugins_API.php
12.2 KB
Del
OK
Post_History.php
2.96 KB
Del
OK
Post_Transient.php
5.76 KB
Del
OK
Process
-
Del
OK
Promise.php
9.04 KB
Del
OK
Promoter
-
Del
OK
REST
-
Del
OK
Repository
-
Del
OK
Repository.php
100.06 KB
Del
OK
Rewrite.php
34.63 KB
Del
OK
Service_Providers
-
Del
OK
Settings.php
23.81 KB
Del
OK
Settings_Manager.php
9.78 KB
Del
OK
Settings_Tab.php
6.93 KB
Del
OK
Shortcode
-
Del
OK
Simple_Table.php
4.01 KB
Del
OK
Support
-
Del
OK
Support.php
14.43 KB
Del
OK
Tabbed_View
-
Del
OK
Tabbed_View.php
8.1 KB
Del
OK
Template.php
43.65 KB
Del
OK
Template_Factory.php
5.45 KB
Del
OK
Template_Part_Cache.php
2.74 KB
Del
OK
Templates.php
1.79 KB
Del
OK
Terms.php
1.51 KB
Del
OK
Timezones.php
18.21 KB
Del
OK
Tooltip
-
Del
OK
Tracker.php
12.51 KB
Del
OK
Traits
-
Del
OK
Updater.php
3.78 KB
Del
OK
Utils
-
Del
OK
Validate.php
16.54 KB
Del
OK
Validator
-
Del
OK
View_Helpers.php
9.64 KB
Del
OK
Widget
-
Del
OK
Edit: Deprecation.php
<?php /** * Class Tribe__Deprecation * * Utilities to deprecate code. * * @since 4.3 */ class Tribe__Deprecation { /** * @var self */ protected static $instance; /** * An array specifying the tag, version and optional replacements * for deprecated filters. * * Use the format `<new_filter_tag> => array(<version>, <deprecated_filter_tag>)`. * e.g. `'tribe_current' => array ('4.3', 'tribe_deprecated')` * * For performance reasons this array is manually set and **not** * dynamically populated. * * @var array */ protected $deprecated_filters = [ 'tribe_cost_regex' => [ '4.3', 'tribe_events_cost_regex' ], 'tribe_rewrite_prepared_slug' => [ '4.3', 'tribe_events_rewrite_prepared_slug' ], ]; /** * An array specifying the tag, version and optional replacements * for deprecated actions. * * Use the format `<new_action_tag> => array(<version>, <deprecated_action_tag>)`. * e.g. `'tribe_current' => array ('4.3', 'tribe_deprecated')` * * For performance reasons this array is manually set and **not** * dynamically populated. * * @var array */ protected $deprecated_actions = [ 'tribe_pre_rewrite' => [ '4.3', 'tribe_events_pre_rewrite' ], ]; /** * @return Tribe__Deprecation */ public static function instance() { if ( empty( self::$instance ) ) { $instance = new self(); $instance->deprecate_actions(); $instance->deprecate_filters(); self::$instance = $instance; } return self::$instance; } /** * Hooks the deprecation notices for actions. * * @internal */ public function deprecate_actions() { foreach ( array_keys( $this->deprecated_actions ) as $new_action_tag ) { add_action( $new_action_tag, [ $this, 'deprecated_action_message' ] ); add_filter( $this->deprecated_actions[ $new_action_tag ][1], [ $this, 'deprecated_action_message' ] ); } } /** * Hooks the deprecation notices for filters. * * @internal */ public function deprecate_filters() { foreach ( array_keys( $this->deprecated_filters ) as $new_filter_tag ) { add_filter( $new_filter_tag, [ $this, 'deprecated_filter_message' ] ); add_filter( $this->deprecated_filters[ $new_filter_tag ][1], [ $this, 'deprecated_filter_message' ] ); } } /** * Triggers a deprecation notice if there is any callback hooked on a deprecated action. */ public function deprecated_action_message() { $action = current_action(); if ( isset( $this->deprecated_actions[ $action ] ) ) { $deprecated_tag = $this->deprecated_actions[ $action ][1]; } else { $deprecated_tag = $action; $action = $this->get_action_for_deprecated_tag( $action ); } remove_action( $deprecated_tag, [ $this, 'deprecated_action_message' ] ); if ( doing_action( $deprecated_tag ) || has_filter( $deprecated_tag ) ) { _deprecated_function( 'The ' . $deprecated_tag . ' action', $this->deprecated_actions[ $action ][0], $action ); } add_action( $deprecated_tag, [ $this, 'deprecated_action_message' ] ); } /** * Triggers a deprecation notice if there is any callback hooked on a deprecated filter. * * @since 4.5.13 the filtered value is passed through unchanged * * @param mixed $value * * @return mixed */ public function deprecated_filter_message( $value = null ) { $filter = current_filter(); if ( isset( $this->deprecated_filters[ $filter ] ) ) { $deprecated_tag = $this->deprecated_filters[ $filter ][1]; } else { $deprecated_tag = $filter; $filter = $this->get_filter_for_deprecated_tag( $filter ); } remove_filter( $deprecated_tag, [ $this, 'deprecated_filter_message' ] ); if ( has_filter( $deprecated_tag ) || doing_filter( $deprecated_tag ) ) { $version = Tribe__Utils__Array::get( $this->deprecated_filters, [ $filter, 0 ], null ); _deprecated_function( 'The ' . $deprecated_tag . ' filter', $version, $filter ); } add_filter( $deprecated_tag, [ $this, 'deprecated_filter_message' ] ); return $value; } /** * @param array $deprecated_filters * * @internal */ public function set_deprecated_filters( $deprecated_filters ) { $this->deprecated_filters = $deprecated_filters; } /** * @param array $deprecated_actions * * @internal */ public function set_deprecated_actions( $deprecated_actions ) { $this->deprecated_actions = $deprecated_actions; } /** * @param string $deprecated_tag * * @return int|string */ protected function get_action_for_deprecated_tag( $deprecated_tag ) { foreach ( $this->deprecated_actions as $new_tag => $args ) { if ( $args[1] === $deprecated_tag ) { return $new_tag; } } } /** * @param string $deprecated_tag * * @return int|string */ protected function get_filter_for_deprecated_tag( $deprecated_tag ) { foreach ( $this->deprecated_filters as $new_tag => $args ) { if ( $args[1] === $deprecated_tag ) { return $new_tag; } } } }
Save