This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class Thing { | |
/** | |
* Get an instance of this class | |
*/ | |
static function get_instance() { | |
static $instance = null; | |
if ( null === $instance ) { | |
$instance = new static(); | |
$instance->setup_actions(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* The purpose of this code is to show how you can use theme mods that will fall back to | |
* the already-set mods of the parent theme. So, when a child theme is active, the code | |
* checks, in the following order: 1) child theme mod, 2) parent theme mod, 3) default. | |
*/ | |
function jt_get_theme_mod( $name, $default = false ) { | |
if ( is_child_theme() ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Hi there! | |
Thanks for creating a WordPress theme and submitting it to the WordPress.org directory! Since your theme also includes the accessibility-ready tag, I've also reviewed it according to those requirements, which you can find here: https://make.wordpress.org/themes/handbook/review/accessibility/ | |
Required | |
Anything in this section will need to be fixed before the theme can be approved. | |
Keyboard Navigation |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
wget --mirror --page-requisites --continue --convert-links --user-agent="" --execute robots=off --wait 1 URL |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_filter('nav_menu_link_attributes' , 'att_add_menu_id', 3, 10); | |
if ( !function_exists( 'att_add_menu_id') ) { | |
function att_add_menu_id($atts, $item, $args) { | |
if( 'page' == $item->object ){ | |
$id = $item->object_id; | |
$id = 'page-'. esc_attr( basename( get_permalink( $id ) ) ); | |
$atts['id'] = $id; | |
} | |
return $atts; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_action( 'wp_print_styles', 'child_add_ie7_style_sheet', 200 ); | |
/** | |
* Enqueue an IE-specific style sheet (for all browsers). | |
* | |
* @author Gary Jones | |
* @link https://garyjones.io/ie-conditional-style-sheets-wordpress | |
*/ | |
function child_add_ie7_style_sheet() { |