Skip to content

Commit 0a7ecdc

Browse files
authored
Merge pull request #35 from circuscode/develop
Permission Callback
2 parents c1680dd + f2d19c3 commit 0a7ecdc

File tree

4 files changed

+15
-2
lines changed

4 files changed

+15
-2
lines changed

hdfys_rest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ public function register_routes() {
5555
register_rest_route( 'restful-hello-dolly-for-your-song', '/text', array(
5656
'methods' => WP_REST_Server::READABLE,
5757
'callback' => array( $this, 'rest_get_hello_dolly_for_your_song' ),
58+
'permission_callback' => '__return_true',
5859
) );
5960
}
6061

hellodollyforyoursong.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
Plugin Name: Hello Dolly For Your Song
55
Plugin URI: https://www.unmus.de/wordpress-plugin-hello-dolly-for-your-song/
66
Description: This simple plugin shows a random line of any text in your blog.
7-
Version: 0.19
7+
Version: 0.20
88
Author: Marco Hitschler
99
Author URI: https://www.unmus.de/
1010
License: GPL3

readme.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,11 @@ This project is licensed under the GPL3 License.
153153

154154
## Changelog
155155

156+
### 0.20
157+
158+
* september 2025
159+
* Security: REST API Permission Callback added
160+
156161
### 0.19
157162

158163
* april 2024

readme.txt

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Tags: hello world, love, random, learning wordpress, admin
44
Requires at least: 5.2
55
Requires PHP: 7.0
66
Tested up to: 6.8
7-
Stable tag: 0.19
7+
Stable tag: 0.20
88
License: GPLv3 or later
99
License URI: https://www.gnu.org/licenses/gpl-3.0.html
1010

@@ -101,6 +101,10 @@ Several admin pages like settings are excluded, because some plugins do not use
101101

102102
== Changelog ==
103103

104+
= 0.20 =
105+
* september 2025
106+
* Security: REST API Permission Callback added
107+
104108
= 0.19 =
105109
* april 2024
106110
* Security: Echo Escaping added
@@ -207,6 +211,9 @@ Several admin pages like settings are excluded, because some plugins do not use
207211

208212
== Upgrade Notice ==
209213

214+
= 0.20 =
215+
This version is a security release (no new features, but more secure code).
216+
210217
= 0.19 =
211218
This version is a security release (no new features, but more secure code).
212219

0 commit comments

Comments
 (0)