Community Support Forums — WordPress® ( Users Helping Users ) — 2011-11-16T08:15:00-05:00 http://www.primothemes.com/forums/feed.php?f=4&t=15911 2011-11-16T08:15:00-05:00 http://www.primothemes.com/forums/viewtopic.php?t=15911&p=53177#p53177 <![CDATA[Re: Better Patch Instructions?]]> Just for future reference, where did you place it?

Statistics: Posted by Eduan — November 16th, 2011, 8:15 am


]]>
2011-11-15T22:33:14-05:00 http://www.primothemes.com/forums/viewtopic.php?t=15911&p=53146#p53146 <![CDATA[Re: Better Patch Instructions?]]>

Statistics: Posted by akhanukov — November 15th, 2011, 10:33 pm


]]>
2011-11-15T16:25:40-05:00 http://www.primothemes.com/forums/viewtopic.php?t=15911&p=53103#p53103 <![CDATA[Better Patch Instructions?]]>

Patch #1 ( /wp-login.php )

case 'register' :
if ( is_multisite() ) {
// Multisite uses wp-signup.php
// Modified for full plugin compatiblity.
//wp_redirect( apply_filters( 'wp_signup_location', get_bloginfo('wpurl') . '/wp-signup.php' ) );
//exit;
}

Patch #2 ( /wp-includes/load.php )

// Modified for full plugin compatiblity.
//if ( empty( $active_plugins ) || defined( 'WP_INSTALLING' ) )
if ( empty( $active_plugins ) || ( defined( 'WP_INSTALLING' ) && !preg_match("/\/wp-activate\.php/", $_SERVER["REQUEST_URI"]) ) )
return $plugins;

Patch #3 ( /wp-admin/user-new.php )

// Modified for full plugin compatiblity.
//wpmu_signup_user( $new_user_login, $_REQUEST[ 'email' ], array( 'add_to_blog' => $wpdb->blogid, 'new_role' => $_REQUEST[ 'role' ] ) );
wpmu_signup_user( $new_user_login, $_REQUEST[ 'email' ], apply_filters( 'add_signup_meta', array( 'add_to_blog' => $wpdb->blogid, 'new_role' => $_REQUEST[ 'role' ] ) ) );

Patch #4 ( /wp-includes/ms-functions.php )

// Modified for full plugin compatiblity.
//return new WP_Error( 'user_already_exists', __( 'That username is already activated.' ), $signup);
return apply_filters('_wpmu_activate_existing_error_', new WP_Error( 'user_already_exists', __( 'That username is already activated.' ), $signup), get_defined_vars());

Don't forget to patch these files again, each time you upgrade the WordPress® core.


So I would like to know:

1. Do I throw each bit of code at the end of each file? OR
2. So I find the area of the file where the case or code exists and insert the new code there?
3. How and where does the auto patcher put this? Thanks!

Statistics: Posted by akhanukov — November 15th, 2011, 4:25 pm


]]>