PluginProbe
ActivityPub / 8.0.2
ActivityPub v8.0.2
9.3.1 9.3.0 9.2.2 9.2.1 9.2.0 9.1.0 9.0.2 9.0.1 9.0.0 8.3.0 8.2.1 8.2.0 8.1.1 1.0.5 1.0.6 1.0.7 1.0.8 1.0.9 1.1.0 1.2.0 1.3.0 2.0.0 2.0.1 2.1.0 2.1.1 All 160 releases
← All changes | includes/wp-admin/class-settings.php +15 -15 9.2.08.0.2 View file →
@@ -32,15 +32,15 @@
32 32 $show_welcome_tab = \get_user_meta( \get_current_user_id(), 'activitypub_show_welcome_tab', true );
33 33 $show_advanced_tab = \get_user_meta( \get_current_user_id(), 'activitypub_show_advanced_tab', true );
34 34 $settings_tabs = array();
35 35 $settings_tab = array(
36 - 'label' => \__( 'Settings', 'activitypub' ),
36 + 'label' => __( 'Settings', 'activitypub' ),
37 37 'template' => ACTIVITYPUB_PLUGIN_DIR . 'templates/settings.php',
38 38 );
39 39
40 40 if ( $show_welcome_tab ) {
41 41 $settings_tabs['welcome'] = array(
42 - 'label' => \__( 'Welcome', 'activitypub' ),
42 + 'label' => __( 'Welcome', 'activitypub' ),
43 43 'template' => ACTIVITYPUB_PLUGIN_DIR . 'templates/welcome.php',
44 44 );
45 45 }
46 46
@@ -61,19 +61,19 @@
61 61 );
62 62
63 63 if ( user_can_activitypub( Actors::BLOG_USER_ID ) ) {
64 64 $settings_tabs['blog-profile'] = array(
65 - 'label' => \__( 'Blog Profile', 'activitypub' ),
65 + 'label' => __( 'Blog Profile', 'activitypub' ),
66 66 'template' => ACTIVITYPUB_PLUGIN_DIR . 'templates/blog-settings.php',
67 67 );
68 68 $settings_tabs['followers'] = array(
69 - 'label' => \__( 'Followers', 'activitypub' ),
69 + 'label' => __( 'Followers', 'activitypub' ),
70 70 'template' => ACTIVITYPUB_PLUGIN_DIR . 'templates/followers-list.php',
71 71 );
72 72
73 73 if ( '1' === \get_option( 'activitypub_following_ui', '0' ) ) {
74 74 $settings_tabs['following'] = array(
75 - 'label' => \__( 'Following', 'activitypub' ),
75 + 'label' => __( 'Following', 'activitypub' ),
76 76 'template' => ACTIVITYPUB_PLUGIN_DIR . 'templates/following-list.php',
77 77 );
78 78 }
79 79 }
@@ -85,14 +85,14 @@
85 85 */
86 86 $settings_tabs = \apply_filters( 'activitypub_admin_settings_tabs', $settings_tabs );
87 87
88 88 if ( empty( $settings_tabs ) ) {
89 - \_doing_it_wrong( __FUNCTION__, 'No settings tabs found. There should be at least one tab to show a settings page.', '7.0.0' );
89 + _doing_it_wrong( __FUNCTION__, 'No settings tabs found. There should be at least one tab to show a settings page.', '7.0.0' );
90 90 $settings_tabs['settings'] = $settings_tab;
91 91 }
92 92
93 - $tab_keys = \array_keys( $settings_tabs );
94 - $default_tab = \reset( $tab_keys );
93 + $tab_keys = array_keys( $settings_tabs );
94 + $default_tab = reset( $tab_keys );
95 95 // phpcs:ignore WordPress.Security.NonceVerification.Recommended
96 96 $tab = isset( $_GET['tab'] ) ? \sanitize_key( $_GET['tab'] ) : $default_tab;
97 97
98 98 if ( ! isset( $settings_tabs[ $tab ] ) ) {
@@ -192,12 +192,12 @@
192 192 if ( ! empty( self::get_recommended_plugins() ) ) {
193 193 \get_current_screen()->add_help_tab(
194 194 array(
195 195 'id' => 'recommended-plugins',
196 - 'title' => \__( 'Recommended Plugins', 'activitypub' ),
196 + 'title' => __( 'Recommended Plugins', 'activitypub' ),
197 197 'content' =>
198 - '<h2>' . \esc_html__( 'Supercharge Your Fediverse Experience', 'activitypub' ) . '</h2>' .
199 - '<p>' . \esc_html__( 'Enhance your WordPress ActivityPub setup with these hand-picked plugins, each adding unique capabilities for a richer Fediverse experience.', 'activitypub' ) . '</p>' .
198 + '<h2>' . esc_html__( 'Supercharge Your Fediverse Experience', 'activitypub' ) . '</h2>' .
199 + '<p>' . esc_html__( 'Enhance your WordPress ActivityPub setup with these hand-picked plugins, each adding unique capabilities for a richer Fediverse experience.', 'activitypub' ) . '</p>' .
200 200 self::render_recommended_plugins_list(),
201 201 )
202 202 );
203 203 }
@@ -443,13 +443,13 @@
443 443 * @return string Rendered template output.
444 444 */
445 445 private static function get_help_tab_template( $template_name ) {
446 446 $template_path = ACTIVITYPUB_PLUGIN_DIR . 'templates/help-tab/' . $template_name . '.php';
447 - if ( ! \file_exists( $template_path ) ) {
447 + if ( ! file_exists( $template_path ) ) {
448 448 return '';
449 449 }
450 450
451 - \ob_start();
452 - \load_template( $template_path, false );
453 - return \ob_get_clean();
451 + ob_start();
452 + load_template( $template_path, false );
453 + return ob_get_clean();
454 454 }
455 455 }