[wp-meta] [Making WordPress.org] #3123: Plugin Directory: Add "Requires PHP" header to readme standard
Making WordPress.org
noreply at wordpress.org
Tue Sep 12 13:38:35 UTC 2017
#3123: Plugin Directory: Add "Requires PHP" header to readme standard
--------------------------------------+------------------------------------
Reporter: SergeyBiryukov | Owner:
Type: task | Status: new
Priority: normal | Milestone: Plugin Directory v3.0
Component: Plugin Directory | Resolution:
Keywords: good-first-bug has-patch |
--------------------------------------+------------------------------------
Changes (by xkon):
* keywords: good-first-bug => good-first-bug has-patch
Comment:
Ok after giving it a lot of research on getting to read something under
the plugins folder without making it work I decided to propose the way I'd
do it without an actual 'url rewrite'.
This way in '''3123.4.diff''' we achieve all of the above as well.
1) We include it on the version control.
2) It adds a custom template to `/plugins/readme.txt` to show readme.txt's
contents.
I know that this goes off from what @SergeyBiryukov suggested on getting
it into the plugin, but it does the job or at least it's a start I think
with everything needed here.
What I simply did is added a `plugin-readme-txt.php` file within the
`wporg-plugins` template and created a custom function to show that file
when someone goes to `/plugins/readme.txt`. It's a basic html template
nothing more to it.
--
Ticket URL: <https://meta.trac.wordpress.org/ticket/3123#comment:15>
Making WordPress.org <https://meta.trac.wordpress.org/>
Making WordPress.org
More information about the wp-meta
mailing list