WordPress.org

Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #43992, comment 21


Ignore:
Timestamp:
01/25/2019 10:33:47 PM (2 years ago)
Author:
afragen
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #43992, comment 21

    initial v1  
    55
    66`get_file_data()` reads from a plugin or theme main file, not from the `readme.txt`. `get_file_data()` references [https://codex.wordpress.org/File_Header File Header] in the Codex. `get_file_data()` will not correctly parse a `readme.txt` file.
     7
     8Specifically from the Codex:
     9
     10{{{
     11File Headers in readme.txt
     12Some plugins contain the readme.txt file which might contain look-a-like headers as well. Those files are > not handled by WordPress but by third-party applications. Because those applications can be quite popular, I note down here those tags from an example readme file:
     13
     14Contributors: markjaquith, mdawaffe (this should be a list of wordpress.org userid's)
     15Donate link: http://example.com/
     16Tags: comments, spam
     17Requires at least: 2.0.2
     18Tested up to: 2.1
     19Stable tag: 4.3
     20
     21As ticket #12260 suggests, the headers from readme.txt are used through remote WP.org API calls. This is a good example of how third party applications use has direct impact on wordpress core code usage.
     22}}}