Changeset 2806076
- Timestamp:
- 10/27/2022 06:43:50 PM (3 years ago)
- File:
-
- 1 edited
-
spacer/tags/3.0.7/index.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
spacer/tags/3.0.7/index.php
r2806011 r2806076 1272 1272 $args["class"] = ""; 1273 1273 } 1274 $usevalue = get_option($args["id"], $default); 1275 $usevalue = esc_attr($usevalue); 1274 1276 // Render the output 1275 echo '<input type="text" ' . $placeholder_html . $max_length_html . ' id="' . $args["id"] . '" class="' . $args["class"]. '" name="' . $args["id"] . '" value="' . get_option($args["id"], $default). '" />';1277 echo '<input type="text" ' . $placeholder_html . $max_length_html . ' id="' . $args["id"] . '" class="' . $args["class"]. '" name="' . $args["id"] . '" value="' . $usevalue . '" />'; 1276 1278 if(isset($args["desc"])) { 1277 1279 echo "<p class='description'>".$args["desc"]."</p>"; … … 1308 1310 $usevalue = $getarray[$key]; 1309 1311 } 1312 $usevalue = esc_attr($usevalue); 1310 1313 // Render the output 1311 1314 echo '<input type="text" ' . $placeholder_html . $max_length_html . ' class="' . $args["class"]. '" name="' . $args["id"] . '['.$key.']" value="' . $usevalue . '" />';
Note: See TracChangeset
for help on using the changeset viewer.