Repository navigation
Expand file tree
/
Copy pathreadme.txt
More file actions
162 lines (113 loc) · 5.45 KB
/
Copy pathreadme.txt
File metadata and controls
162 lines (113 loc) · 5.45 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
=== Simple Post Notes ===
Contributors: bracketspace, Kubitomakita
Tags: note, notes, post notes, info, post info
Requires at least: 6.5
Tested up to: 7.2
Stable tag: 1.9.0
Requires PHP: 7.4
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Adds simple notes to post, page and custom post type edit screen.
== Description ==
= Features =
* Simple note section on the post edit screen
* Sortable note column in posts table
* Bulk / Quick edit support
* Shortcode which will display the note on the front end
* Ability to change the "Note" title and add a help text for editors
= Our other plugins =
* [Notification - notification system for WordPress](https://bracketspace.com/notification/)
* [Advanced Cron Manager](https://wordpress.org/plugins/advanced-cron-manager/)
= Custom development =
BracketSpace - the company behind this plugin provides [custom WordPress plugin development services](https://bracketspace.com/custom-development/). We can create any custom plugin for you.
*Cover photo [designed by Freepik](http://www.freepik.com)*
== Frequently Asked Questions ==
= Is this plugin compatible with Gutenberg? =
Yes, it is!
= Custom post type are supported? =
Yes! Enable them on the plugin settings screen.
= Can I display my note on the front-end? =
Yes. Use the `[spnote]` shortcode. You can also pass optional parameter with post ID: `[spnote id="123"]` to display note from other post. By default it's grabbing current post.
= Can I disable display of admin column? =
Yes, by a simple filter.
Use:
`add_filter( 'spn/columns-display', '__return_false' );`
To disable SPN column for all post types
Or use
`add_filter( 'spn/columns-display/POST_TYPE_SLUG', '__return_false' );`
To disable SPN column only for specific post type
= Can I change the list of post types offered in the settings? =
Yes, by a simple filter. It receives an array of post type objects keyed by post type name:
`add_filter( 'spn/post-types', function ( $postTypes ) { unset( $postTypes['POST_TYPE_SLUG'] ); return $postTypes; } );`
= Can you create a plugin for me? =
Yes! We're offering a [custom plugin development](https://bracketspace.com/custom-development/) services. Feel free to contact us to find out how we can help you.
== Screenshots ==
1. Post Note area
2. Post Note in Posts table
3. Settings
== Changelog ==
= 1.9.0 =
* [Added] Compatibility with WordPress 7.2 and PHP 8.5 and 8.6.
* [Added] Setting for the height of the notes field.
* [Added] Post types registered by other plugins that are not public, but have their own admin screen, can now be selected in the settings.
* [Changed] Plugin requirements to WordPress >=6.5 and PHP >=7.4.
* [Changed] Post types in the plugin settings are now picked with simple checkboxes.
* [Changed] The [spnote] shortcode no longer shows notes of drafts, private or password-protected posts to visitors who cannot see those posts.
* [Changed] Plugin scripts load only on the post list screens where notes are used, instead of every admin page.
* [Fixed] Sorting by the notes column no longer hides posts without a note. Posts without a note are now always listed last.
* [Fixed] Notes can now be used with the Notification plugin - the notes box and column were hidden on its screens.
* [Fixed] PHP warnings appearing right after the plugin is activated, before the settings were saved for the first time.
* [Fixed] Line breaks in a note were lost when editing it with Quick Edit.
* [Fixed] The notes field was missing in Quick Edit and Bulk Edit for users who can edit a custom post type but not regular posts.
* [Fixed] Bulk Edit now shows a message when a note could not be saved, instead of silently skipping it.
* [Fixed] Security issue - users could add or change notes on posts they are not allowed to edit.
* [Fixed] Security issue - notes displayed by the shortcode and the plugin settings were not properly sanitized.
= 1.8.1 =
* [Fixed] Added null coalescing operators to prevent PHP warnings when settings array keys don't exist.
= 1.8.0 =
* [Changed] Removed local translation files in favor of GlotPress repository.
* [Changed] Coding standards to PSR-12.
* [Changed] Plugin requirements to WordPress >=6.0 and PHP >=7.0.
= 1.7.8 =
* [Fixed] Security issue - missing proper user data sanitization for notes placeholder and label.
* [Changed] Multiple escaping missing.
= 1.7.7 =
* [Fixed] Notes bulk edit which didn't save the note.
* [Fixed] PHP notice_placeholder not defined notice.
* [Fixed] Security patch.
= 1.7.6 =
* [Added] Sanitization for better security.
= 1.7.5 =
* [Fixed] PHP warning.
= 1.7.4 =
* [Fixed] Note column sorting.
= 1.7.3 =
* [Changed] The shortcode with note is now wrapped with a div.
= 1.7.2 =
* [Fixed] Bug with duplicated post notes for hierachical post types
* [Changed] Plugin author branding
= 1.7.1 =
* [Fixed] `Using $this when not in object context` error, thanks to Gero
= 1.7 =
* [Added] Ability to change the "Note" title and add a help text for editors
= 1.6 =
* [Added] Support for quick and bulk edit
* [Added] Shortcode [spnote]
= 1.5 =
* [Fixed] Bug with duplicated post notes for custom post type
* [Changed] Translation. Now it's managed via repository
= 1.4 =
* Added German translation thanks to Michael Köther
= 1.3 =
* Note column in the posts table is now sortable
= 1.2.2 =
* Added Spanish translation thanks to Alfonso Frachelle
= 1.2.1 =
* Added filter to prevent displaying post note column
= 1.1.0 =
* Added Note to admin column
= 1.0.0 =
* Release
== Upgrade Notice ==
= 1.0.0 =
Release