indieweb / wordpress-uf2

add "Microformats 2" classes to your WordPress theme
https://wordpress.org/plugins/wp-uf2/
22 stars 4 forks source link

fix genesis support #10

Closed willnorris closed 10 years ago

willnorris commented 10 years ago

we can't call genesis_html5 directly from within uf2, since the plugin is apparently loaded before the theme. Instead, we move uf2_genesis_init into the main uf2.php file, and then include genesis.php when needed.

pfefferle commented 10 years ago

I thought about this commit a little bit more... I think this disables the following hooks:

 remove_filter( 'the_title', 'uf2_the_title', 99, 1 );
 remove_filter( 'the_content', 'uf2_the_post', 99, 1 );
 remove_filter( 'the_excerpt', 'uf2_the_excerpt', 99, 1 );
 remove_filter( 'the_author', 'uf2_the_author', 99, 1 );
 remove_filter( 'comment_text', 'uf2_comment_text', 99, 1 );
 remove_filter( 'get_comment_author_link', 'uf2_author_link' );
 remove_filter( 'comment_class', 'uf2_comment_classes' );

if someone uses genesis or not or am I wrong? Sorry, I am very busy atm and haven't tested it myself.

willnorris commented 10 years ago

doh! I forgot to keep the genesis check :) sending another pull request in a minute.