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
| UPDATE wp_posts SET post_content = replace(replace(replace(post_content, '“', '"'), '”', '"'), '’', ''''); |
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
| RENAME table wp_commentmeta TO wp_NEWPREFIX_commentmeta; | |
| RENAME table wp_comments TO wp_NEWPREFIX_comments; | |
| RENAME table wp_links TO wp_NEWPREFIX_links; | |
| RENAME table wp_options TO wp_NEWPREFIX_options; | |
| RENAME table wp_postmeta TO wp_NEWPREFIX_postmeta; | |
| RENAME table wp_posts TO wp_NEWPREFIX_posts; | |
| RENAME table wp_terms TO wp_NEWPREFIX_terms; | |
| RENAME table wp_term_relationships TO wp_NEWPREFIX_term_relationships; | |
| RENAME table wp_term_taxonomy TO wp_NEWPREFIX_term_taxonomy; | |
| RENAME table wp_usermeta TO wp_NEWPREFIX_usermeta; |
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
| DELETE FROM wp_options WHERE option_name LIKE '_transient_%'; | |
| DELETE FROM wp_comments WHERE wp_comments.comment_type = 'pingback'; | |
| DELETE FROM wp_comments WHERE wp_comments.comment_type = 'trackback'; | |
| DELETE a,b,c FROM wp_posts a LEFT JOIN wp_term_relationships b ON (a.ID = b.object_id) | |
| LEFT JOIN wp_postmeta c ON (a.ID = c.post_id) WHERE a.post_type = 'revision'; |
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
| // Change wp-login.php form header logo & link & title | |
| function ryno_custom_wplogin_logo() { | |
| echo "<style type=\"text/css\"> | |
| h1 a { background-image:url(".get_bloginfo('template_directory')."/images/the_new_logo.png) !important; } | |
| </style>"; | |
| } | |
| add_action('login_head', 'ryno_custom_wplogin_logo'); | |
| function ryno_change_wplogin_url() { | |
| return get_bloginfo('url'); |
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
| function vuurr_nuke_comment_url_field($fields) { | |
| unset($fields['url']); | |
| return $fields; | |
| } | |
| add_filter('comment_form_default_fields','vuurr_nuke_comment_url_field'); |
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
| function security_remove_emails($content) { | |
| $pattern = '/([a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4})/i'; | |
| $fix = preg_replace_callback($pattern, | |
| "security_remove_emails_logic", $content); | |
| return $fix; | |
| } | |
| function security_remove_emails_logic($result) { | |
| return antispambot($result[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
| /** Debugging WP */ | |
| define('WP_DEBUG', true); //enable the reporting of notices during development - E_ALL | |
| define('WP_DEBUG_DISPLAY', true); //use the globally configured setting for display_errors and not force errors to be displayed | |
| define('WP_DEBUG_LOG', true); //error logging to wp-content/debug.log | |
| define('SCRIPT_DEBUG', true); //loads the development (non-minified) versions of all scripts and CSS and disables compression and concatenation, | |
| define('E_DEPRECATED', false); //E_ALL & ~E_DEPRECATED & ~E_STRICT | |
| define('AUTOSAVE_INTERVAL', '300'); // Autosave interval | |
| define('SAVEQUERIES', true); // Analyse queries | |
| define('WP_POST_REVISIONS', false); |
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 | |
| // Add a default Gravatar if user doesn't have one | |
| if ( !function_exists('rYno_newgravatar') ) { | |
| function rYno_newgravatar( $avatar_defaults ) { | |
| $newgravatar = get_bloginfo('template_url').'/images/new-gravatar.gif'; | |
| $avatar_defaults[$newgravatar] = 'New Custom Gravatar'; | |
| return $avatar_defaults; | |
| } | |
| add_filter( 'avatar_defaults', 'rYno_newgravatar' ); |
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
| http://audiorpc.weblogs.com/RPC2 | |
| http://www.allpodcasts.com/Ping.aspx | |
| http://www.podnova.com/xmlrpc.srf | |
| http://ping.podcast.com/ping.php |