-
* All stylesheets must be registered/enqueued via `wp_enqueue_style`
* Check `inc/google-font-collection.php`, line no 111
* Proper way of adding google font is here: https://themeshaper.com/2014/08…
-
The `lsx_customizer_sanitize_get_default()` in `inc/sanitize.php` doesn't always return. If you look at the code, it only returns under one condition:
```
function lsx_customizer_sanitize_get_def…
-
* Following are unused functions, remove them as they are not being used by the theme
* `/inc/extras.php` `lsx_get_attachment_id`, `lsx_get_avatar_url()`
-
In `footer.php`, the `wp_footer()` call should be executed last, just before the closing `` tag. Currently, the theme calls it before the `lsx_body_bottom()` function is executed.
In the .ORG them…
-
In the `lsx_wp_title()` function in `inc/extras.php`, I'd run `intval()` over `$page` and `$paged` to be on the safe side. There was a big security issues with that a year or so back where several th…
-
This code in `inc/sensei.php` probably doesn't belong in the theme:
```
function lsx_sensei_redirect_to_home( $query ){
if ( ! is_admin() && is_post_type_archive( 'lesson' ) && $query->is_main_q…
-
* As of WordPress 4.1, `wp_title` is implemented via `add_theme_support`. Remove function `lsx_wp_title` in `extras.php` and implement as in reference here https://make.wordpress.org/core/2014/10/29/t…
-
In WordPress 4.6 we will be able to add validation to customizer settings - https://make.wordpress.org/core/2016/07/05/customizer-apis-in-4-6-for-setting-validation-and-notifications/
Make LSX theme …
-
* Add image size function in `functions.php` lines 249-250 must be added to a proper callback function and hooked to `after_setup_theme`
* Move it inside function `lsx_setup` in `config.php`
-