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 | |
// trim excerpt whitespace | |
if ( !function_exists( 'mp_trim_excerpt_whitespace' ) ) { | |
function mp_trim_excerpt_whitespace( $excerpt ) { | |
return trim( $excerpt ); | |
} | |
add_filter( 'get_the_excerpt', 'mp_trim_excerpt_whitespace', 1 ); | |
} |
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
""" | |
Attempting to set session variables directly from TestCases can | |
be error prone. Use this super-class to enable session modifications | |
from within your tests. | |
Usage | |
----- | |
class MyTest(SessionEnabledTestCase): |