| @@ -28,14 +28,8 @@ | ||
| 28 | 28 | update_option('wpatt_option_includeimages', '1'); |
| 29 | 29 | } else { |
| 30 | 30 | update_option('wpatt_option_includeimages', '0'); |
| 31 | 31 | } |
| 32 | - | |
| 33 | - if (isset($_POST['wpatt_option_targetblank_n'])) { | |
| 34 | - update_option('wpatt_option_targetblank', '1'); | |
| 35 | - } else { | |
| 36 | - update_option('wpatt_option_targetblank', '0'); | |
| 37 | - } | |
| 38 | 32 | |
| 39 | 33 | } |
| 40 | 34 | |
| 41 | 35 | |
| @@ -96,22 +90,13 @@ | ||
| 96 | 90 | if ($wpatt_option_showdate_get == '1') { |
| 97 | 91 | echo 'checked=\'checked\''; |
| 98 | 92 | } |
| 99 | 93 | echo '/> ' . __('Check this if you want to show the date of file upload','wp-attachments') . '</td>'; |
| 100 | - echo '</tr>'; | |
| 101 | - | |
| 102 | - echo '<tr><th scope="row">' . __('Open in new tab','wp-attachments') . '</th> | |
| 103 | - <td><input type="checkbox" name="wpatt_option_targetblank_n" '; | |
| 104 | - $wpatt_option_targetblank_get = get_option('wpatt_option_targetblank'); | |
| 105 | - if ($wpatt_option_targetblank_get == '1') { | |
| 106 | - echo 'checked=\'checked\''; | |
| 107 | - } | |
| 108 | - echo '/> ' . __('Check this option if you want to add target="_blank" to every file listed in order to open it in a new tab','wp-attachments') . '</td>'; | |
| 109 | 94 | echo '</tr></table>'; |
| 110 | 95 | |
| 111 | 96 | |
| 112 | 97 | |
| 113 | - echo '</table><p class="submit"><input type="submit" class="button-primary" name="Submit" value="' . __('Save') . '" /></p>'; | |
| 98 | + echo '</table><p class="submit"><input type="submit" class="button-primary" name="Submit" value="Update" /></p>'; | |
| 114 | 99 | |
| 115 | 100 | echo '</form></div> |
| 116 | 101 | <h3>' . __('Help, Support & Feedback','wp-attachments') . '</h3> |
| 117 | 102 | <a href="http://wordpress.org/plugins/wp-attachments/" title "WP Attachments Wordpress Plugin>http://wordpress.org/plugins/wp-attachments/</a><br/>' . __('This plugin is mantained by <a href=\"http://marcomilesi.ml\" title=\"Marco Milesi\">Marco Milesi</a> and is based on simplicity and intuitiveness. Keep it updated :)<br/>Thank You for using WP Attachments!','wp-attachments') . '</div>'; |