Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/carolinan/readme-check
Checks the readme file of themes in the review queue
https://github.com/carolinan/readme-check
Last synced: about 2 months ago
JSON representation
Checks the readme file of themes in the review queue
- Host: GitHub
- URL: https://github.com/carolinan/readme-check
- Owner: carolinan
- License: gpl-2.0
- Created: 2019-05-10T12:12:50.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-10-02T18:14:04.000Z (about 5 years ago)
- Last Synced: 2024-10-09T02:41:30.064Z (3 months ago)
- Language: PHP
- Homepage:
- Size: 18.6 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: readme-check.php
- License: LICENSE
Awesome Lists containing this project
README
diff( $now )->format( '%d days, %h hours and %i minutes ago.' ) );
echo '
';
esc_html_e( 'Files that has not been updated in the last 24 hours will be updated when you run the check.', 'readme-check' );
echo '
';
}if ( file_exists( plugin_dir_path( __FILE__ ) . 'report_24.csv' ) ) {
esc_html_e( 'A .csv file for the Approved queue already exists. ', 'readme-check' );
esc_html_e( 'The file was last updated: ', 'readme-check' );$file_last_updated = date( 'Y-m-d H:i:s.', filemtime( plugin_dir_path( __FILE__ ) . 'report_24.csv' ) );
$date = new DateTime( $file_last_updated );
$now = new DateTime();
echo esc_html( $date->diff( $now )->format( '%d days, %h hours and %i minutes ago.' ) );
echo '
';
esc_html_e( 'Files that has not been updated in the last 24 hours will be updated when you run the check.', 'readme-check' );
}
?>
';
echo '' . esc_html__( 'Select a queue', 'readme-check' ) . '
';
echo '';
echo '' . esc_html__( 'New', 'readme-check' ) . '';
echo '' . esc_html__( 'Approved but not live', 'readme-check' ) . '';
echo '
';
echo '';
echo '';
wp_nonce_field( 'readme-check-nonce' );
echo '
';if ( isset( $_POST['queue'] ) ) {
check_admin_referer( 'readme-check-nonce' );
readme_check_themes( $_POST['queue'] );
}?>