Changeset 3229331
- Timestamp:
- 01/27/2025 10:27:51 AM (13 months ago)
- Location:
- clinked-client-portal/trunk
- Files:
-
- 3 edited
-
README.md (modified) (1 diff)
-
clinked-wordpress-plugin.php (modified) (7 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
clinked-client-portal/trunk/README.md
r3011472 r3229331 1 1 # Clinked Wordpress Plugin 2 2 3 This simple plugin provides a widget and shortcode to add a login formto a page.3 This simple plugin provides a widget and shortcode to add a login button to a page. 4 4 5 5 ## Usage -
clinked-client-portal/trunk/clinked-wordpress-plugin.php
r3011472 r3229331 59 59 60 60 public static function get_widget($atts = [], $content = null, $tag = '') { 61 62 61 63 $atts = shortcode_atts([ 62 64 "portal_url" => "https://app.clinked.app", … … 65 67 "text" => "", 66 68 "widget_id" => "" 67 ], $atts);69 ], array_map('esc_attr', $atts)); 68 70 69 71 if (empty($atts['widget_id'])) { … … 81 83 $buttonClasses = Array('wp-block-button', 'has-custom-font-size', 'has-small-font-size'); 82 84 if (!empty($atts['button_class'])) { 83 $buttonClasses = array_merge($buttonClasses, explode(',', $atts['button_class']));85 $buttonClasses = array_merge($buttonClasses, explode(',', esc_attr($atts['button_class']))); 84 86 } 85 87 $atts['buttonClasses'] = $buttonClasses; … … 87 89 $widget = '<div class="clinked-login-container" data-widget="' . $atts["widget_id"] . '">'; 88 90 if (!empty($atts["text"])) { 89 $widget .= wpautop(wp_kses_post( $atts["text"]));91 $widget .= wpautop(wp_kses_post(esc_html($atts["text"]))); 90 92 } 91 93 $widget .= self::build_view($atts["widget_id"], 'button', $atts); … … 148 150 "remember_me" => false, 149 151 "remember_me_text" => "Remember me" 150 ], $atts);152 ], array_map('esc_attr', $atts)); 151 153 152 154 if (empty($atts['widget_id'])) { … … 168 170 $inputClasses = Array(); 169 171 if (!empty($atts['input_class'])) { 170 $inputClasses = array_merge($inputClasses, explode(',', $atts['input_class']));172 $inputClasses = array_merge($inputClasses, explode(',', esc_attr($atts['input_class']))); 171 173 } 172 174 $atts['inputClasses'] = $inputClasses; … … 174 176 $buttonClasses = Array(); 175 177 if (!empty($atts['button_class'])) { 176 $buttonClasses = array_merge($buttonClasses, explode(',', $atts['button_class']));178 $buttonClasses = array_merge($buttonClasses, explode(',', esc_attr($atts['button_class']))); 177 179 } 178 180 $atts['buttonClasses'] = $buttonClasses; -
clinked-client-portal/trunk/readme.txt
r3011472 r3229331 3 3 Tags: client portal, customer portal, client portal software, white-label file sharing, collaboration tool, online project management, task management software, project management tool, online project management software, share files, share large files, secure file sharing, file sharing site, online file sharing, file transfer, collaborate, collaboration site, online collaboration, ftp alternative, ftp replacement, send large files, web collaboration, team workspace, extranet, team collaboration, send large files, share files online, file sharing 4 4 Requires at least: 3.0 5 Tested up to: 6. 46 Stable tag: 1. 95 Tested up to: 6.7 6 Stable tag: 1.10 7 7 License: MIT 8 8 License URI: https://mit-license.org/ … … 111 111 * The login form is depricated, please use the button instead. 112 112 113 = 1.10 = 114 * XSS bugfixes 115 113 116 == Upgrade Notice == 114 117
Note: See TracChangeset
for help on using the changeset viewer.