Commit Graph

9 Commits

Author SHA1 Message Date
IanDelMar 860d8c123a Fix WPCS errors and warnings + escaping
Fixes many WPCS errors and warnings

Also:
* Partly removes excessive php opening/closing tags.
* Uses printf for better readability in loop-templates/content-none.php.
* Adds understrap_kses_title() to escape post titles.
* Adds understrap_escape_the_archive_description() to escape the archive description.
* Fixes missing '__' after esc_html in author.php.
* Updates the phpcs.xml to reflect all the changes.
* Updates composer dependencies and scripts.
2020-04-19 12:08:39 +02:00
IanDelMar b786f04859
Move action hook outside if 2019-12-19 23:05:22 +01:00
IanDelMar 628601415b No period for summary in file headers
According to WP's PHP documentation standards on file headers. See https://developer.wordpress.org/coding-standards/inline-documentation-standards/php/#6-file-headers.
2019-11-14 18:16:31 +01:00
Gary Kealy 600eb39883 Use shorter ABSPATH check 2019-06-20 09:57:12 +01:00
IanDelMar 8ecfeb4436 Fix indentation 2018-11-19 00:38:50 +01:00
IanDelMar 45c9d1adb7 Prevent direct access 2018-09-10 23:59:04 +02:00
IanDelMar 6678261a81
Fix function_exists & parenthesis
* Fixed function_exists checking the wrong function
* Added missing parenthesis
2018-08-07 21:39:03 +02:00
IanDelMar eda386549d
Update hooks.php 2018-08-06 22:34:35 +02:00
IanDelMar cee0bd5ee3
Create hooks.php 2018-08-06 22:19:50 +02:00