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
<? phpinfo(); |
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
add_filter('aioseop_title', 'sowich_title', 10, 2); | |
function sowich_title($title, $id = null){return implode(' | ', array_diff(array_map('trim', explode('|', $title)), ['', null, ' ']));} |
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 | |
$img = false; | |
if (preg_match('#a[^>]+class=\"more-link\"#i', get_the_content())) | |
$img = true; | |
?> | |
<?php if ($img): ?> | |
<img src="<?php echo catch_that_image() ?>" class="news-img" alt="<?php the_title(); ?>"/> | |
<?php endif; ?> | |
... |
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
//function.php | |
remove_filter('template_redirect', 'redirect_canonical'); |
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
find /PATH -type f -exec chmod 644 {} + |
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 | |
add_filter('wp_list_categories', 'esc_wp_rel_nofollow'); | |
add_filter('wp_tag_cloud', 'esc_wp_rel_nofollow'); | |
function esc_wp_rel_nofollow($output) | |
{ | |
if (is_single() || is_category() || is_tag()) | |
return stripslashes(wp_rel_nofollow($output)); | |
return $output; |
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 | |
/** | |
* WordPress Query Comprehensive Reference | |
* Compiled by luetkemj - luetkemj.com | |
* | |
* CODEX: http://codex.wordpress.org/Class_Reference/WP_Query#Parameters | |
* Source: https://core.trac.wordpress.org/browser/tags/3.9/src/wp-includes/query.php | |
*/ | |
$args = array( |
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
git archive --format=zip --remote=<$PATH> HEAD > <$NAME_PLUGIN>.zip |
OlderNewer