Tag Info

Hot answers tagged

15

Short answer: Plugins do not modify existing files, they hook into WordPress via an exposed API. Plugins can modify database schema. Plugins don't have to uninstall cleanly. Plugin Hooks Plugins hook into WordPress at specific point exposed by the WordPress core. http://codex.wordpress.org/Plugin_API As an example, the function get_option() reads a ...


14

As I mentioned I was going to be start working on this need immediately so I'm making headway. Given that I'm knocking these down I figured it's best to start posting them. Still, if someone else can/will post (some of) the parts I haven't done I'll be happy to let you copy whatever I'd done you haven't and select your answer as the best answer. Until then ...


11

The solution I found that worked on my Mac running the builtin Apache2 was to add this to 'wp-config.php' define('FS_METHOD','direct');


8

01 Database Security 01.01 change your database prefix during install or after install this is security by obscurity but helps with automated scripts that could run over all databases to inject bad code in your content like scripts, iframes or display: bits 01.02 install a database backup plugin to automate the backup e.g. ...


8

Sure. wp_install_defaults() is a pluggable function. (As are wp_new_blog_notification() and wp_upgrade(), in case you ever need to override those too.) # in wp-config.php if ( defined('WP_INSTALLING') && WP_INSTALLING ) { include_once dirname(__FILE__) . '/wp-content/install.php'; } # in wp-content/install.php function ...


8

Go through each plugin file and remove the plugin header. Create a loader.php file. Something like this: <?php /* Plugin Name: Combined Plugin Description: Contains plugin a, plugin b and plugin c */ include dirname(__FILE__) . '/plugin-a.php'; include dirname(__FILE__) . '/plugin-b.php'; include dirname(__FILE__) . '/plugin-c.php';


6

When the installer runs it calls wp_install(), that in turn calls populate_options() defined in wp-admin/includes/schema.php, which runs the following.. if ( !__get_option('home') ) update_option('home', $guessurl); Prior to that $guessurl is defined by.. $guessurl = wp_guess_url(); The guess URL function is defined in wp-includes/functions.php and ...


6

Always install the latest final version. This is the most secure version you can get. Older tutorials and guides should still mostly apply. If they don’t you will find enough replacements that are up to date.


5

The code you posted is to have multiple wp-config.php-style wordpress configuration files with one codebase. the configuration is then based on the domain name. imagine the localserver is listening on http://localhost.localdomain/ (no idea which one is the default with ubuntu), then the configuration file would be: ...


5

No, there is no security risk. Both files do sanity checks before anything happens. If WordPress is already installed: install-helper.php returns just a blank page. install.php says WordPress is installed and you should log in: You can forbid access to both files with a simple rule in your .htaccess above the permalink rules: RedirectMatch Permanent ...


4

Given the way that Linux and Windows are licensed, using Linux would cut on the OS licensing costs, and Linux would make a better use of the CPU as you would only load the modules and process you need, with greater flexibility than Windows. Also, you can run a server-only Linux, which is not possible under Windows, as well as running a headless computer, ...


4

The database connection constants are defined in the wp-config.php file. Whether the 2 wp-config.php files in the jiewmeng directory and the WordPress directory are the same? You need to create 2 different databases and set their constants in the respective wp-config.php files.


4

In theory, you could rename the file and change the rewrite rule accordingly. Assuming you rename it to wp-index.php, it would look something like this: <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /wp-index.php [L] </IfModule> There are a few ...


4

To always get latest plugin take for example my plugin: http://wordpress.org/extend/plugins/wordpress-file-monitor-plus/ the download link for the latest is: http://downloads.wordpress.org/plugin/wordpress-file-monitor-plus.1.1.zip but if you remove the version from the download link you always get the latest version: ...


4

Quick and dirty: Go to the theme editor and echo ABSPATH in a comment of header.php.


4

This is a permissions issue. wp-content/plugins must be writable by the web server user.


4

WordPress Codex has quite extensive installation instructions. I see there's a .zip file and a .tar.gz file -- which should I use? No difference. Archive format is merely for convenience, contents are the same. I want the site to be at http not at www., but I do want either the site to also be visible at www. or for the www. to redirect to http -- ...


4

To answer your first question, in mosts hosts the www and public_html folders are the same, one just links to the other. To make things simple, start with the public_html folder. There is usually what is called a symlink between the two, pretty much like an alias or a shortcut. Now for the second question on moving the site, perform approximately the ...


4

Have you considered setting your main site to a multisite setup? This would allow you to use the same wordpress files from the root and serve a wordpress site under the /seperatesite/ directory without the need for duplicating files. take a look at: http://codex.wordpress.org/Create_A_Network If you need any specific help regarding setting this up then ...


4

There's really great WordPress codex article Before You Create A Network, "Do you really need a network?" part will answer most of your questions.


4

Should I host on my Linux hosting account or Windows Hosting Account? Is there any pro/cons one over other? It's a matter of preference and know-how. Choose one you find easier working on. If you are new to both, I'd suggest going with Linux — as most tutorials and docs on the web assume that you are on a Linux box. You can't go wrong with either, and ...


4

Pam, It sounds like you are facing some major challenges, but I would highly recommend not messing with the table prefix. Doing so will lead to a series of problems, which will require hack after hack to remedy leaving you with a substantial mess of a WordPress installation. There are some other things you can do to help solve issues with slow queries. ...


4

Searching for another thing, just stumbled upon this gem by @anmari :) You have to put a Dropin plugin at the root of wp-content. Should be named install.php and contain a new version of the pluggable function wp_install_defaults. I used this gist for testing. And the only modification from the original function is the default category name and slug. ...


4

I usually just run a function on wpmu_new_blog - best to put in mu-plugins function wpse_wpmu_remove_default_content($blog_id, $user_id, $domain, $path, $site_id, $meta) { if ( !current_user_can('manage_network') ) return; switch_to_blog($blog_id); // Remove the default post & page wp_delete_post(1, true); wp_delete_post(2, true); // ...


3

This can be somewhat tedious, but hopefully this helps. The less that changes from one environment to the next, the less painful this process will be. Particularly, if the domain, site id, file paths remain the same, the less painful this process will be. This post assumes some knowledge of database management. It is not a complete step by step because you ...


3

For the fun of it, straight from the plugin page. This is not just a plugin, it symbolizes the hope and enthusiasm of an entire generation summed up in two words sung most famously by Louis Armstrong: Hello, Dolly. When activated you will randomly see a lyric from Hello, Dolly in the upper right of your admin screen on every page. The truth of it, ...


3

Note: there is no Version "3.04". There is a Version "3.0.4", though. The important thing to understand with WordPress version numbers is that, unlike many software applications, the latest major version is not Version X, but rather, Version X.Y. So, in WordPress, Version X.0 is no more important, stable, or secure than Version X.1 (and in fact, generally ...


3

Update your wp_options table. Look for siteurl and home and change their values to point to your localhost, that is, http://localhost/mylocalsite. This should be enough to make your site work again. You don't need to find and replace all instances where the old url is present. For example you should not change the guid of your posts. Alse read this post ...


3

Use plugins like : WP DUMMY CONTENT Easy generation and deletion of blog posts, pages, and sub pages for developers. Full site structure in one click. DEMO DATA CREATOR Demo Data Creator is a WordPress and BuddyPress plugin that allows a WordPress developer to create demo users, blogs, posts, comments and blogroll links. Well and of course ...



Only top voted, non community-wiki answers of a minimum length are eligible