Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

extend filter parameters and fix issues #73

Open
wants to merge 15 commits into
base: master
Choose a base branch
from

Conversation

Jon007
Copy link

@Jon007 Jon007 commented Jul 28, 2018

implements #72 with filter and additional parameters on terms
implements #65 with additional filter parameters, also permitting implementation of #63 to create persist post from within bulk copy, also permitting implementation of #61, #60, #59
fixes #69 by avoiding copy again to target blog: useful when called from bulk copy where easy to accidentally include some posts already copied
fixes #68
fixes #67
fixes #66
fixes #64

Jon007 and others added 15 commits July 23, 2018 00:06
and, bail if post can't be found, which happens if current blog not correctly restored
Add source blog id and filter to terms creation code to allow extension
- correct blog switching to get right links for admin messages
- correct handling of wp error returned from wp_insert_term
plugins activated on source site may be triggered on target site when not applicable.
Many plugins notice and suppress their save hooks if DOING_AUTOSAVE is set so this can be used to suppress: this is a background save not a foreground save of the displayed item in the displayed blog...
when termid fails creation because it already exists, the existing termid can be returned
some plugins have wizards which don't set any global current screen so get_current_screen() returns null
@@ -322,6 +322,7 @@ function mpd_is_site_active(){
function change_tax_terms_table(){

$options = get_option( 'mdp_settings' );
if ( isset( $options[ 'master_site_setting' ] ) ) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This fix is not sufficient. The $master_id var can be undefined within the if statement below due to this change.
If statement should also check if the var exists or a better solution in my opinion is to set the var with a null value and check if there is a value in the if statement.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment