Changeset 3129768
- Timestamp:
- 08/01/2024 11:35:33 PM (20 months ago)
- Location:
- pageapp
- Files:
-
- 18 added
- 3 edited
-
tags/1.4.0 (added)
-
tags/1.4.0/css (added)
-
tags/1.4.0/css/admin.css (added)
-
tags/1.4.0/images (added)
-
tags/1.4.0/images/pageapp20.png (added)
-
tags/1.4.0/inc (added)
-
tags/1.4.0/inc/cachelib.php (added)
-
tags/1.4.0/inc/httplib.php (added)
-
tags/1.4.0/inc/jsonlib.php (added)
-
tags/1.4.0/inc/pluginlib.php (added)
-
tags/1.4.0/inc/restlib.php (added)
-
tags/1.4.0/inc/settingslib.php (added)
-
tags/1.4.0/inc/utilslib.php (added)
-
tags/1.4.0/js (added)
-
tags/1.4.0/js/admin.js (added)
-
tags/1.4.0/pageapp-json.php (added)
-
tags/1.4.0/pageapp.php (added)
-
tags/1.4.0/readme.txt (added)
-
trunk/inc/settingslib.php (modified) (3 diffs)
-
trunk/pageapp.php (modified) (1 diff)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
pageapp/trunk/inc/settingslib.php
r3126398 r3129768 103 103 return ' 104 104 <tr valign="top" class="'.$setting->id.'"> 105 <th scope="row">'. $setting->title.($setting->type=='text'&&$setting->description?'<div style="font-weight:normal;">'.$setting->description.'</div>':'').'</th>105 <th scope="row">'.esc_html($setting->title).($setting->type=='text'&&$setting->description?'<div style="font-weight:normal;">'.esc_html($setting->description).'</div>':'').'</th> 106 106 <td>'.$html.'</td> 107 107 </tr>'; 108 108 } 109 109 public static function settings_text($setting) { 110 $html = '<textarea id="'. $setting->id.'" name="'.$setting->id.'" rows="10" cols="70" />'.esc_html(get_option($setting->id)).'</textarea>';110 $html = '<textarea id="'.esc_attr($setting->id).'" name="'.esc_attr($setting->id).'" rows="10" cols="70" />'.esc_html(get_option($setting->id)).'</textarea>'; 111 111 return self::settings_row($setting, $html); 112 112 } … … 114 114 $assoc = self::associative($setting->values); 115 115 $current = get_option($setting->id); 116 $html = '<select id="'. $setting->id.'" name="'.$setting->id.'">';116 $html = '<select id="'.esc_attr($setting->id).'" name="'.esc_attr($setting->id).'">'; 117 117 foreach ($setting->values as $key => $name) { 118 118 $value = $assoc ? $key : $name; … … 123 123 } 124 124 public static function settings_checkbox($setting) { 125 $html = '<input type="checkbox" id="'. $setting->id.'" name="'.$setting->id.'"'.(get_option($setting->id) == '1' ? ' checked="checked"' : '').' />';126 $html .= '<label for="name="'. $setting->id.'"">'.(property_exists($setting,'description')?$setting->description:'Enable').'</label>';125 $html = '<input type="checkbox" id="'.esc_attr($setting->id).'" name="'.esc_attr($setting->id).'"'.(get_option($setting->id) == '1' ? ' checked="checked"' : '').' />'; 126 $html .= '<label for="name="'.esc_attr($setting->id).'"">'.(property_exists($setting,'description')?esc_html($setting->description):'Enable').'</label>'; 127 127 return self::settings_row($setting, $html); 128 128 } 129 129 public static function settings_input($setting) { 130 $html = '<input style="width:520px;" placeholder="'. $setting->description.'" type="'.($setting->type=='password'?'password':'text').'" name="'.$setting->id.'" value="'.esc_attr(get_option($setting->id)).'" />';130 $html = '<input style="width:520px;" placeholder="'.esc_attr($setting->description).'" type="'.($setting->type=='password'?'password':'text').'" name="'.esc_attr($setting->id).'" value="'.esc_attr(get_option($setting->id)).'" />'; 131 131 //$html .= '<div>'.$setting->description.'</div>'; 132 132 return self::settings_row($setting, $html); -
pageapp/trunk/pageapp.php
r3126398 r3129768 4 4 Plugin URI: https://wordpress.org/plugins/pageapp/ 5 5 Description: Extensions to Wordpress wp-json for the PageApp API and mobile framework 6 Version: 1. 3.96 Version: 1.4.0 7 7 Author: PageApp 8 8 Author URI: https://www.pageapp.com -
pageapp/trunk/readme.txt
r3126398 r3129768 4 4 Requires at least: 3.0 5 5 Tested up to: 6.5.4 6 Stable tag: 1. 3.96 Stable tag: 1.4.0 7 7 License: © 2024 Thireen32 Pty Ltd 8 8 Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&business=K6VKWB3HZB2T2&item_name=Donation%20to%20jameslow%2ecom¤cy_code=USD&bn=PP%2dDonationsBF&charset=UTF%2d8 … … 28 28 29 29 == Changelog == 30 31 = 1.4.0 = 32 * Escape more properties in SettingsLib 30 33 31 34 = 1.3.9 =
Note: See TracChangeset
for help on using the changeset viewer.