From a4f1d2bad5ebd794876f08609251394e2e44b33e Mon Sep 17 00:00:00 2001 From: Ojo Paul Date: Mon, 30 May 2022 16:05:31 +0100 Subject: [PATCH 1/3] - How to users find these parameters? #686 --- src/modules/multiple-authors/multiple-authors.php | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/src/modules/multiple-authors/multiple-authors.php b/src/modules/multiple-authors/multiple-authors.php index 177d41f8..e3fe6a28 100644 --- a/src/modules/multiple-authors/multiple-authors.php +++ b/src/modules/multiple-authors/multiple-authors.php @@ -272,7 +272,7 @@ public function action_admin_menu_page() self::MENU_SLUG, '', 'dashicons-groups', - 26 + 26.7 ); $current_author = Author::get_by_user_id(get_current_user_id()); @@ -288,7 +288,7 @@ public function action_admin_menu_page() 'term.php?taxonomy=author&tag_ID='.$current_author->term_id, __return_empty_string(), 'dashicons-groups', - 27 + 26.8 ); } @@ -613,7 +613,7 @@ public function register_settings() add_settings_field( 'load_font_awesome', - __('Load font awesome:', 'publishpress-authors'), + __('Layout icons:', 'publishpress-authors'), [$this, 'settings_load_font_awesome_option'], $this->module->options_group_name, $this->module->options_group_name . '_display' @@ -874,7 +874,7 @@ private function settings_ppma_shortcodes($shortcodes = []) { 'shortcode' => '[publishpress_authors_data field="display_name"]', 'description' => sprintf( esc_html__( - 'The authors data shortcode accepts field parameter like: %1s %2s %3s %4s %5s %6s which can be specified to determine what field should be return.', + 'The authors data shortcode accepts field parameter such as: %1s %2s %3s %4s %5s %6s. You can see full details and parameters %7s in this guide %8s', 'publishpress-authors' ), 'display_name', @@ -883,6 +883,8 @@ private function settings_ppma_shortcodes($shortcodes = []) { 'ID', 'user_nicename', 'user_email', + '', + '' ), ], 'option_3' => [ @@ -1120,7 +1122,7 @@ public function settings_show_site_link_option($args = []) } /** - * Display load font awesome option field. + * Display layout icons option field. * * @param array */ @@ -1133,7 +1135,7 @@ public function settings_load_font_awesome_option($args = []) echo ''; echo '    ' . esc_html__( - 'This will load font awesome css to enable usage of font awesome icons.', + 'This will load Font Awesome icons for use in layouts.', 'publishpress-authors' ) . ''; echo ''; From 01d54f7c91c91ea9a374e62c517698a26b94b7d7 Mon Sep 17 00:00:00 2001 From: Ojo Paul Date: Mon, 30 May 2022 16:10:48 +0100 Subject: [PATCH 2/3] - update punctuation --- src/modules/multiple-authors/multiple-authors.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/modules/multiple-authors/multiple-authors.php b/src/modules/multiple-authors/multiple-authors.php index e3fe6a28..f04ed122 100644 --- a/src/modules/multiple-authors/multiple-authors.php +++ b/src/modules/multiple-authors/multiple-authors.php @@ -874,7 +874,7 @@ private function settings_ppma_shortcodes($shortcodes = []) { 'shortcode' => '[publishpress_authors_data field="display_name"]', 'description' => sprintf( esc_html__( - 'The authors data shortcode accepts field parameter such as: %1s %2s %3s %4s %5s %6s. You can see full details and parameters %7s in this guide %8s', + 'The authors data shortcode accepts field parameter such as: %1s %2s %3s %4s %5s %6s. You can see full details and parameters %7s in this guide %8s.', 'publishpress-authors' ), 'display_name', @@ -3113,3 +3113,4 @@ public function filter_admin_body_class($classes) { } } } +ch \ No newline at end of file From 014e0a7faff25a8923dae8bd4eb8b18bf3e41a93 Mon Sep 17 00:00:00 2001 From: Ojo Paul Date: Mon, 30 May 2022 16:14:56 +0100 Subject: [PATCH 3/3] - fix syntax error --- src/modules/multiple-authors/multiple-authors.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/modules/multiple-authors/multiple-authors.php b/src/modules/multiple-authors/multiple-authors.php index f04ed122..b5a316ae 100644 --- a/src/modules/multiple-authors/multiple-authors.php +++ b/src/modules/multiple-authors/multiple-authors.php @@ -3112,5 +3112,4 @@ public function filter_admin_body_class($classes) { return $classes; } } -} -ch \ No newline at end of file +} \ No newline at end of file