-
pt-query-advisor, pt-variable-advisor, and other tools available in Percona Toolkit - Debian, Ubuntu packages
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 | |
/* | |
* DESCRIPTION: All WordPress email notifications are sent from | |
* [email protected] with the sender's name as "WordPress". | |
* Any one of these functions should help you change that. | |
* | |
* Relevant WordPress core file is /wp-includes/pluggable.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 | |
if( $wp_query->current_post == 0 && !is_paged() ) { | |
post_class('first-post'); | |
} else { | |
post_class(); | |
} | |
?> | |
Update System
sudo apt-get update && sudo apt-get upgrade
sudo apt-get install git
feed.xml
---
layout: nil
---
<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:wfw="http://wellformedweb.org/CommentAPI/"
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
/* Delete revisions */ | |
DELETE FROM wp_posts WHERE post_type = "revision"; | |
/* Only use this if you no longer care about any of your current revisions! */ | |
/* Delete trashed posts */ | |
DELETE FROM wp_posts WHERE post_type = "trash"; | |
/* Delete Unapproved comments */ | |
DELETE FROM wp_comments WHERE comment_approved = "0"; | |
/* Only use this if you no longer care about the current queue of unapproved comments! */ |
OlderNewer