szepeviktor/wp-cli-readme-command

Validate readme.txt of themes and plugins.

v0.1.1 2020-05-28 06:45 UTC

This package is auto-updated.

Last update: 2024-11-28 18:15:48 UTC


README

Validate readme.txt of themes and plugins.

Installation

Require it from your wp-cli.yml

require:
  - vendor/szepeviktor/wp-cli-readme-command/wp-cli-readme-command.php

Usage

wp readme validate wp-content/plugins/coblocks/readme.txt

Update classes from WordPress Meta

# Check out SVN repository
svn co http://meta.svn.wordpress.org/sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/

# Copy classes
cat <<"EOT" | xargs -I % -- cp --parents % /path/to/wp-cli-readme-command/src/
libs/michelf-php-markdown-1.6.0/Michelf/MarkdownExtra.inc.php
libs/michelf-php-markdown-1.6.0/Michelf/MarkdownInterface.php
libs/michelf-php-markdown-1.6.0/Michelf/Markdown.php
libs/michelf-php-markdown-1.6.0/Michelf/MarkdownExtra.php
class-markdown.php
readme/class-parser.php
readme/class-validator.php
EOT

# Comment out sanitize_contributors() call
sed -i -e 's#^.*this->sanitize_contributors.*#//&#' /path/to/wp-cli-readme-command/src/readme/class-parser.php