Skip to content

Commit

Permalink
Fix incorrect label for page selection on account settings tab (#2731)
Browse files Browse the repository at this point in the history
* Adding placeholder.

* Adding changelog.
  • Loading branch information
brianhogg authored Aug 20, 2024
1 parent 7cc0130 commit 67cfed1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
significance: patch
type: fixed
links:
- "#2708"
entry: Fixes placeholder label on the Dashboard Page selection dropdown.
5 changes: 2 additions & 3 deletions includes/admin/settings/class.llms.settings.accounts.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,8 @@ public function get_settings() {
'class' => 'llms-select2-post',
'type' => 'select',
'custom_attributes' => array(
'data-post-type' => 'page',
'data-post-type' => 'page',
'data-placeholder' => __( 'Select a page', 'lifterlms' ),
),
'options' => llms_make_select2_post_array( get_option( 'lifterlms_myaccount_page_id', '' ) ),
),
Expand Down Expand Up @@ -372,7 +373,6 @@ public function get_settings() {
* @param array $account_settings The account page settings.
*/
return apply_filters( "lifterlms_{$this->id}_settings", $account_settings );

}

/**
Expand All @@ -385,7 +385,6 @@ public function get_settings() {
protected function set_label() {
return __( 'Accounts', 'lifterlms' );
}

}

return new LLMS_Settings_Accounts();

0 comments on commit 67cfed1

Please sign in to comment.