This file contains 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
Processing file 427 of 479 "wp-includes/query.php". | |
Updated function "get_query_var" | |
Updated function "get_queried_object" | |
Updated function "get_queried_object_id" | |
Updated function "set_query_var" | |
Updated function "query_posts" | |
Updated function "wp_reset_query" | |
Updated function "wp_reset_postdata" | |
Updated function "is_archive" | |
Updated function "is_post_type_archive" |
This file contains 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
excluded files | |
'wp-includes/class-snoopy.php', | |
'wp-includes/class-simplepie.php', | |
'wp-includes/class-IXR.php', | |
'wp-includes/class-phpass.php', | |
'wp-includes/class-phpmailer.php', | |
'wp-includes/class-pop3.php', | |
'wp-includes/class-json.php', | |
'wp-includes/class-smtp.php', | |
'wp-admin/includes/class-pclzip.php', |
This file contains 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 | |
/** | |
* Reversed Pagination for WordPress - proof of concept | |
* | |
* WARNING! Not suitable for use on a live website! | |
* | |
* Proof of concept for reversed pagination as discussed here | |
* http://nerd.vasilis.nl/problem-paginated-archive-pages-blogs/ | |
* and here (Dutch) | |
* http://wasstra.at/035/ |
This file contains 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 | |
/** | |
* Checks if post status is new | |
*/ | |
add_action( 'transition_post_status', 'post_unpublished', 10, 3 ); | |
function post_unpublished( $new_status, $old_status, $post ) { | |
if ( $old_status == 'new' ) { | |
// do stuff for new post | |
} |
This file contains 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 | |
/** | |
* Gets date ranges for the BETWEEN operator in a WordPress meta query. | |
* WordPress minimum requirements don't let you | |
* use php DateTime or (some) relative formats for strtotime() which were introduced in php 5.3. | |
* | |
* @param string|array $args Arguments. | |
* @return array Array with two dates. | |
*/ | |
function get_between_clause_dates( $args ) { |