GeezerVison is showing github.com — fix(admin): prevent double-escaping of widget defaults and empty name… · axeptio/wordpress-plugin@c4e2471
File tree
Expand file treeCollapse file tree
Open diff view settings
templates/admin/common/fields
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: includes/classes/models/class-axeptio-steps.php +3-3Lines changed: 3 additions & 3 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -18,11 +18,11 @@ class Axeptio_Steps { |
18 | 18 | public static function get_default_value( string $field ): string { |
19 | 19 | switch ( $field ) { |
20 | 20 | case 'widget_title': |
21 | | - return esc_html__( 'WordPress Cookies', 'axeptio-wordpress-plugin' ); |
| 21 | + return __( 'WordPress Cookies', 'axeptio-wordpress-plugin' ); |
22 | 22 | case 'widget_subtitle': |
23 | | - return esc_html__( 'Here you will find all WordPress extensions using cookies.', 'axeptio-wordpress-plugin' ); |
| 23 | + return __( 'Here you will find all WordPress extensions using cookies.', 'axeptio-wordpress-plugin' ); |
24 | 24 | case 'widget_description': |
25 | | - return esc_html__( 'Below is the list of extensions used on this site that utilize cookies. Please activate or deactivate the ones for which you consent to sharing your data.', 'axeptio-wordpress-plugin' ); |
| 25 | + return __( 'Below is the list of extensions used on this site that utilize cookies. Please activate or deactivate the ones for which you consent to sharing your data.', 'axeptio-wordpress-plugin' ); |
26 | 26 | default: |
27 | 27 | return ''; |
28 | 28 | } |
|
Collapse file
Copy file name to clipboardExpand all lines: templates/admin/common/fields/select-languages.php +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -13,7 +13,7 @@ class="relative" |
13 | 13 | <?php endif ?> |
14 | 14 | </label> |
15 | 15 |
|
16 | | - <input type="hidden" :name="state.name" x-model="state.value"> |
| 16 | + <input type="hidden" :name="state.name || null" x-model="state.value"> |
17 | 17 |
|
18 | 18 | <button |
19 | 19 | type="button" |
|