Austin Matzko
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Using table_prefix for multiple blogsYour code introduces a potentially serious security vulnerability by allowing the public to set the tables’ prefix to an arbitrary string.
Forum: Fixing WordPress
In reply to: Restoring a backup that is a .sql.gz file typeWhat happens if you open the SQL file? I’ve opened it with a web editor (Taco) and it didn’t explode.
Perhaps you can elborate on why the .sql file shouldn’t be opened and what you experienced when you opened it.
There’s no harm in opening the .sql file. It’s just a text file like anything else.
There might be harm if you open it and then save it, making MySQL syntax errors. I’ve seen a couple of people make the mistake of opening the .sql file in a word processor application like Microsoft Word, which then converted quotation marks into “curly” quotation marks.
Forum: Requests and Feedback
In reply to: New Default WordPress Theme?Jane wrote:
This forum thread is the best place to weigh in on what features you think are important to include in a default theme, if it should have a specific look, etc.
I think you’re asking people to jump too many steps ahead. First, you need to figure out what the purpose of the default theme is. Then we can talk about what features best further that purpose.
- The default theme used to be what everyone started out using. That’s no longer the case, and it doesn’t need to be the case with the proliferation of free and paid themes, many of which can be installed directly from the dashboard.
- The default theme (and perhaps more so, the “Classic” theme) used to be the basis of people’s learning how to create their own themes. But again, there are many good, basic themes that can be used as examples. And there are many tutorials on how to create a theme. Theme-developer training no longer needs to be a goal of the default theme.
I suggest instead that the purpose of the default theme be to act as the public “face” of WordPress. In other words, it will be what people think of when they think of WordPress, as they do now with Kubrick. It doesn’t need to have all the whiz-bang features; it doesn’t need to show developers how to develop; it doesn’t even need to be something that people will use (most won’t); instead, it just needs to make the WordPress brand look like something people would want to use.
Forum: Plugins
In reply to: [Plugin: WP-DB-Backup] Loads blog homepage, rather than backing upCan you explain what you mean by “loading the blog homepage”?
Do you mean the contents of the home page appear in the main body of the admin page?
Or do you mean that your browser is redirected to to the home page, so that you no longer see the wp-admin URL in your browser but instead the URL of your home page?
Are you logged in as an admin?
Have you activated any other plugins recently?
Forum: Plugins
In reply to: How can I remove the re-direct on Theme Switcher change?Yes, you can just comment out the redirect part:
// wp_redirect($redirect);Forum: Plugins
In reply to: [Plugin: WP-DB-Backup] Manual deletion of plugin immediately crashed siteWhen would editing those two files return an Error Connecting to Database message?
It wouldn’t. You would see that if the connection data in your wp-config.php file is wrong or if the database server has gone down or is otherwise unavailable.
The two error messages you mention are probably easily cleared up by your host, which would be able to check the logs to see what’s causing them, and that’s going to be the fastest way to fix your problems. Verify that your wp-config.php file info is correct, and then talk to your host to find out what’s going on.
Forum: Plugins
In reply to: [Plugin: WP-DB-Backup] Manual deletion of plugin immediately crashed siteYou need to look elsewhere for the cause of your problem. Deleting my WP-DB-Backup plugin would not affect the blog at all (except that the plugin would cease to work, obviously).
Probably you deleted something else, changed file permissions, modified your .htaccess file with non-allowed rules, or the like.
Your host should be able to give you a more-specific error message than that.
If you want to know the number of posts in categories 1,2, and 3 that have the meta_key of “actu”, then you can do the following:
$posts_with_actu = get_posts(array( 'category__in' => array(1,2,3), 'meta_key' => 'actu', 'showposts' => -1, )); printf('I have %d posts with "actu"!', count($posts_with_actu));Forum: Requests and Feedback
In reply to: Perform action ‘delete_attachment’ before DB-updateAnd it has now been committed, so it will appear in WordPress 2.8.
Forum: Requests and Feedback
In reply to: Perform action ‘delete_attachment’ before DB-updateI created a ticket here.
Forum: Plugins
In reply to: Category print questionYou probably want something like
wp_list_categories(array('hierarchical' => false));Forum: Fixing WordPress
In reply to: highlight “parent” nav link when on “child” pagewhen i’m on a “child” page i would like the “parent” in the navigation to be highlighted/active.
wp_list_pages()adds the classes “current_page_parent” and “current_page_ancestor” to the parent list element, so you should be able to use that for highlighted styling.Forum: Plugins
In reply to: Custom Uplaod DirectoryYou can set the uploads directory in the admin menu under Settings > Miscellaneous.
Forum: Fixing WordPress
In reply to: Calendar Styling Problems#wp-calendar caption { text-align:center; }Forum: Fixing WordPress
In reply to: adding classes to wp_list_pagesAdd the following line to your theme’s
functions.phptemplate file, and it will add a class attribute of “tag” to each link generated bywp_list_pages():add_filter('wp_list_pages', create_function('$t', 'return str_replace("<a ", "<a class=\"tag\" ", $t);'));