Skip to content

Commit 5706a96

Browse files
authored
Merge pull request #10 from FeXd/date-spell
Default Date & Disable Spellcheck - don't include default date, so that posts will use proper time when posted "now" - disable spellcheck in all inputs - generally annoying and most content is copy/pasted Closes #8 #9
2 parents ade033a + 4d719a2 commit 5706a96

File tree

1 file changed

+9
-10
lines changed

1 file changed

+9
-10
lines changed

quick-weblog.php

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
Plugin Name: Quick Weblog
55
Plugin URI: https://github.com/FeXd/wordpress-plugin-quick-weblog
66
Description: Quickly create a simple Post that highlights an existing news article.
7-
Version: 0.0.3
7+
Version: 0.0.4
88
Author: Arlin Schaffel
99
Author URI: https://github.com/FeXd
1010
License: MIT
@@ -73,7 +73,7 @@ function quick_weblog_form()
7373
<form id="quick-weblog" method="post" action="<?php echo esc_url(admin_url('admin-post.php')); ?>">
7474
<div>
7575
<label for="url"><?php _e('Post URL', 'quick-weblog'); ?></label>
76-
<input type="text" name="url" id="quick-weblog-url" required>
76+
<input type="text" name="url" id="quick-weblog-url" required spellcheck="false">
7777
</div>
7878

7979
<div>
@@ -83,22 +83,22 @@ function quick_weblog_form()
8383

8484
<div>
8585
<label for="title"><?php _e('Post Title', 'quick-weblog'); ?></label>
86-
<input type="text" name="title" id="quick-weblog-title" required>
86+
<input type="text" name="title" id="quick-weblog-title" required spellcheck="false">
8787
</div>
8888

8989
<div>
9090
<label for="image_url"><?php _e('Image URL', 'quick-weblog'); ?></label>
91-
<input type="text" name="image_url" id="quick-weblog-image_url" required>
91+
<input type="text" name="image_url" id="quick-weblog-image_url" required spellcheck="false">
9292
</div>
9393

9494
<div>
9595
<label for="image_description"><?php _e('Image Description', 'quick-weblog'); ?></label>
96-
<input type="text" name="image_description" id="quick-weblog-image_description" required>
96+
<input type="text" name="image_description" id="quick-weblog-image_description" required spellcheck="false">
9797
</div>
9898

9999
<div>
100100
<label for="quote"><?php _e('Quote', 'quick-weblog'); ?></label>
101-
<textarea name="quote" id="quick-weblog-quote" rows="6" required></textarea>
101+
<textarea name="quote" id="quick-weblog-quote" rows="6" required spellcheck="false"></textarea>
102102
</div>
103103

104104
<div>
@@ -108,13 +108,12 @@ function quick_weblog_form()
108108

109109
<div>
110110
<label for="tags"><?php _e('Tags', 'quick-weblog'); ?></label>
111-
<input type="text" name="tags" id="quick-weblog-tags" required>
111+
<input type="text" name="tags" id="quick-weblog-tags" required spellcheck="false">
112112
</div>
113113

114114
<div>
115-
<label for="post_date"><?php _e('Post Date', 'quick-weblog'); ?></label>
116-
<?php $default_date = date('Y-m-d\TH:i'); ?>
117-
<input type="datetime-local" name="post_date" id="quick-weblog-post_date" required value="<?php echo $default_date; ?>">
115+
<label for="post_date"><?php _e('Post Date', 'quick-weblog'); ?> (Optional)</label>
116+
<input type="datetime-local" name="post_date" id="quick-weblog-post_date">
118117
</div>
119118

120119
<div>

0 commit comments

Comments
 (0)