PluginProbe
Stream – Activity Log & Audit Trail / 3.4.2
Stream – Activity Log & Audit Trail v3.4.2
4.4.0 4.3.0 4.2.2 4.2.1 trunk 2.0.1 2.0.2 2.0.3 2.0.4 2.0.5 3.0.0 3.0.1 3.0.2 3.0.3 3.0.4 3.0.5 3.0.6 3.0.7 3.1 3.1.1 3.10.0 3.2.0 3.2.1 3.2.2 3.2.3 All 50 releases
← All changes | classes/class-connectors.php +7 -0 3.2.23.4.2 View file →
@@ -3,8 +3,9 @@
3 3
4 4 class Connectors {
5 5 /**
6 6 * Hold Plugin class
7 + *
7 8 * @var Plugin
8 9 */
9 10 public $plugin;
10 11
@@ -75,8 +76,9 @@
75 76 'buddypress',
76 77 'edd',
77 78 'gravityforms',
78 79 'jetpack',
80 + 'mercator',
79 81 'user-switching',
80 82 'woocommerce',
81 83 'wordpress-seo',
82 84 );
@@ -132,20 +134,24 @@
132 134 $excluded_connectors = array();
133 135
134 136 foreach ( $this->connectors as $connector ) {
135 137 if ( ! method_exists( $connector, 'get_label' ) ) {
138 + // translators: Placeholder refers to a Connector class name, intended to provide help to developers (e.g. "Connector_BuddyPress")
136 139 $this->plugin->admin->notice( sprintf( __( '%s class wasn\'t loaded because it doesn\'t implement the get_label method.', 'stream' ), $connector->name, 'Connector' ), true );
137 140 continue;
138 141 }
139 142 if ( ! method_exists( $connector, 'register' ) ) {
143 + // translators: Placeholder refers to a Connector class name, intended to provide help to developers (e.g. "Connector_BuddyPress")
140 144 $this->plugin->admin->notice( sprintf( __( '%s class wasn\'t loaded because it doesn\'t implement the register method.', 'stream' ), $connector->name, 'Connector' ), true );
141 145 continue;
142 146 }
143 147 if ( ! method_exists( $connector, 'get_context_labels' ) ) {
148 + // translators: Placeholder refers to a Connector class name, intended to provide help to developers (e.g. "Connector_BuddyPress")
144 149 $this->plugin->admin->notice( sprintf( __( '%s class wasn\'t loaded because it doesn\'t implement the get_context_labels method.', 'stream' ), $connector->name, 'Connector' ), true );
145 150 continue;
146 151 }
147 152 if ( ! method_exists( $connector, 'get_action_labels' ) ) {
153 + // translators: Placeholder refers to a Connector class name, intended to provide help to developers (e.g. "Connector_BuddyPress")
148 154 $this->plugin->admin->notice( sprintf( __( '%s class wasn\'t loaded because it doesn\'t implement the get_action_labels method.', 'stream' ), $connector->name, 'Connector' ), true );
149 155 continue;
150 156 }
151 157
@@ -150,8 +156,9 @@
150 156 }
151 157
152 158 // Check if the connectors extends the Connector class, if not skip it.
153 159 if ( ! is_subclass_of( $connector, '\WP_Stream\Connector' ) ) {
160 + // translators: Placeholder refers to a Connector class name, intended to provide help to developers (e.g. "Connector_BuddyPress")
154 161 $this->plugin->admin->notice( sprintf( __( '%1$s class wasn\'t loaded because it doesn\'t extends the %2$s class.', 'stream' ), $connector->name, 'Connector' ), true );
155 162 continue;
156 163 }
157 164