@@ -103,6 +103,8 @@ private function __construct() {
103103 /**
104104 * Filter allows a custom Stream API class to be instantiated
105105 *
106+ * @since 2.0.2
107+ *
106108 * @return object The API class object
107109 */
108110 self ::$ api = apply_filters ( 'wp_stream_api_class ' , new WP_Stream_API );
@@ -133,6 +135,7 @@ private function __construct() {
133135 // Add frontend indicator
134136 add_action ( 'wp_head ' , array ( $ this , 'frontend_indicator ' ) );
135137
138+ // Load admin area classes
136139 if ( is_admin () ) {
137140 add_action ( 'init ' , array ( 'WP_Stream_Admin ' , 'load ' ) );
138141 add_action ( 'init ' , array ( 'WP_Stream_Dashboard_Widget ' , 'load ' ) );
@@ -143,16 +146,21 @@ private function __construct() {
143146 }
144147
145148 /**
146- * Invoked when the PHP version check fails. Load up the translations and
147- * add the error message to the admin notices
149+ * Invoked when the PHP version check fails
150+ *
151+ * Load up the translations and add the error message to the admin notices.
152+ *
153+ * @return void
148154 */
149155 public static function fail_php_version () {
150156 add_action ( 'plugins_loaded ' , array ( __CLASS__ , 'i18n ' ) );
151157 self ::notice ( __ ( 'Stream requires PHP version 5.3+, plugin is currently NOT ACTIVE. ' , 'stream ' ) );
152158 }
153159
154160 /**
161+ * Check for deprecated extension plugins
155162 *
163+ * @return bool
156164 */
157165 public static function deprecated_plugins_exist () {
158166 foreach ( self ::$ deprecated_extensions as $ class => $ dir ) {
@@ -165,7 +173,9 @@ public static function deprecated_plugins_exist() {
165173 }
166174
167175 /**
176+ * Display admin notices when deprecated extension plugins exist
168177 *
178+ * @return void
169179 */
170180 public static function deprecated_plugins_notice () {
171181 add_action ( 'plugins_loaded ' , array ( __CLASS__ , 'i18n ' ) );
@@ -209,11 +219,12 @@ public static function deprecated_plugins_notice() {
209219 }
210220
211221 /**
212- * Autoloader for classes
213- *
214- * @param string $class
215- * @return void
216- */
222+ * Autoloader for classes
223+ *
224+ * @param string $class
225+ *
226+ * @return void
227+ */
217228 function autoload ( $ class ) {
218229 $ class = strtolower ( str_replace ( '_ ' , '- ' , $ class ) );
219230 $ class_file = sprintf ( '%sclass-%s.php ' , WP_STREAM_CLASS_DIR , $ class );
@@ -226,8 +237,8 @@ function autoload( $class ) {
226237 /**
227238 * Loads the translation files.
228239 *
229- * @access public
230240 * @action plugins_loaded
241+ *
231242 * @return void
232243 */
233244 public static function i18n () {
@@ -269,6 +280,8 @@ public static function is_development_mode() {
269280 /**
270281 * Filter allows development mode to be overridden
271282 *
283+ * @since 2.0.0
284+ *
272285 * @return bool
273286 */
274287 return apply_filters ( 'wp_stream_development_mode ' , $ development_mode );
@@ -279,6 +292,7 @@ public static function is_development_mode() {
279292 *
280293 * @param string $message
281294 * @param bool $is_error
295+ *
282296 * @return void
283297 */
284298 public static function notice ( $ message , $ is_error = true ) {
@@ -305,6 +319,7 @@ public static function notice( $message, $is_error = true ) {
305319 * Show an error or other message in the WP Admin
306320 *
307321 * @action shutdown
322+ *
308323 * @return void
309324 */
310325 public static function admin_notices () {
@@ -336,9 +351,8 @@ public static function admin_notices() {
336351 * Displays an HTML comment in the frontend head to indicate that Stream is activated,
337352 * and which version of Stream is currently in use.
338353 *
339- * @since 1.4.5
340- *
341354 * @action wp_head
355+ *
342356 * @return string|void An HTML comment, or nothing if the value is filtered out.
343357 */
344358 public function frontend_indicator () {
@@ -348,6 +362,8 @@ public function frontend_indicator() {
348362 * Filter allows the HTML output of the frontend indicator comment
349363 * to be altered or removed, if desired.
350364 *
365+ * @since 1.4.5
366+ *
351367 * @return string The content of the HTML comment
352368 */
353369 $ comment = apply_filters ( 'wp_stream_frontend_indicator ' , $ comment );
0 commit comments