@@ -23,6 +23,8 @@ function() {
2323 add_action ( 'wp_enqueue_scripts ' , __NAMESPACE__ . '\enqueue_scripts ' );
2424 add_filter ( 'amp_dev_mode_element_xpaths ' , __NAMESPACE__ . '\add_element_xpaths ' );
2525 add_filter ( 'script_loader_tag ' , __NAMESPACE__ . '\add_dev_mode_to_assets ' , 10 , 2 );
26+ // Deprecated action, use wp_ajax_dt_load_connections_push instead
27+ add_action ( 'wp_ajax_dt_load_connections ' , __NAMESPACE__ . '\deprecated_get_connections ' );
2628 add_action ( 'wp_ajax_dt_load_connections_push ' , __NAMESPACE__ . '\get_connections ' );
2729 add_action ( 'wp_ajax_dt_push ' , __NAMESPACE__ . '\ajax_push ' );
2830 add_action ( 'admin_bar_menu ' , __NAMESPACE__ . '\menu_button ' , 999 );
@@ -100,6 +102,22 @@ function syndicatable() {
100102 return true ;
101103}
102104
105+ /**
106+ * Get available connections for use in the Push UI.
107+ *
108+ * This is a deprecated function that forwards to get_connections().
109+ * The action 'wp_ajax_dt_load_connections' is deprecated in favor of 'wp_ajax_dt_load_connections_push'.
110+ *
111+ * @since x.x.x
112+ * @deprecated x.x.x Use Distributor\PushUI\get_connections() instead.
113+ * @see Distributor\PushUI\get_connections()
114+ */
115+ function deprecated_get_connections () {
116+ _deprecated_function ( __FUNCTION__ , 'x.x.x ' , __NAMESPACE__ . '\get_connections ' );
117+
118+ get_connections ();
119+ }
120+
103121/**
104122 * Get available connections for use in the Push UI.
105123 *
0 commit comments