Prep Plugin for release on WordPress.org (#23)

* Update translation text domain
* Escape everything that should be escaped.
* Add nonce checks where needed.
* Sanitize all inputs.
* Apply Code style changes across the codebase.
* Correct many deprecation notices.
* Optimize load order of many filters.
* Add Proper Build script
* Use emojii flags
* Fix i18n deprecation  notice for translating too early
* Put all scripts in footer and load async
This commit is contained in:
David Stone
2025-04-14 11:36:46 -06:00
committed by GitHub
parent a31cfcb565
commit d88e50df38
1087 changed files with 12586 additions and 18535 deletions

View File

@ -42,10 +42,11 @@ class Views {
* @since 1.9.0
* @param string|array $template_names Template file(s) to search for, in order.
* @param bool $load If true the template file will be loaded if it is found.
* @param bool $require_once Whether to require_once or require. Default true. Has no effect if $load is false.
* @param bool $use_require_once Whether to require_once or require. Default true. Has no effect if $load is false.
*
* @return string The template filename if one is located.
*/
public function custom_locate_template($template_names, $load = false, $require_once = true) {
public function custom_locate_template($template_names, $load = false, $use_require_once = true) {
is_multisite() && switch_to_blog(get_current_site()->blog_id);
@ -76,7 +77,7 @@ class Views {
}
if ($load && '' !== $located) {
load_template($located, $require_once);
load_template($located, $use_require_once);
}
return $located;