Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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'] );
}

?>