' . __( 'Settings Updated.', 'wordpress-seo' ) . '

'; } if ( isset( $_POST[ 'wpseo_restore_blog' ] ) ) { if ( isset( $_POST[ 'wpseo_ms' ][ 'restoreblog' ] ) && is_numeric( $_POST[ 'wpseo_ms' ][ 'restoreblog' ] ) ) { $blog = get_blog_details( $_POST[ 'wpseo_ms' ][ 'restoreblog' ] ); if ( $blog ) { foreach ( get_wpseo_options_arr() as $option ) { $new_options = get_blog_option( $options[ 'defaultblog' ], $option ); if ( count( $new_options ) > 0 ) update_blog_option( $_POST[ 'wpseo_ms' ][ 'restoreblog' ], $option, $new_options ); } echo '

' . $blog->blogname . ' ' . __( 'restored to default SEO settings.', 'wordpress-seo' ) . '

'; } } } $wpseo_admin_pages->admin_header( 'MultiSite Settings', false ); $content = '
'; $content .= $wpseo_admin_pages->select( 'access', __( 'Who should have access to the WordPress SEO settings', 'wordpress-seo' ), array( 'admin' => __( 'Site Admins (default)', 'wordpress-seo' ), 'superadmin' => __( 'Super Admins only', 'wordpress-seo' ) ), 'wpseo_ms' ); $content .= $wpseo_admin_pages->textinput( 'defaultblog', __( 'New blogs get the SEO settings from this blog', 'wordpress-seo' ), 'wpseo_ms' ); $content .= '

' . __( 'Enter the Blog ID for the site whose settings you want to use as default for all sites that are added to your network. Leave empty for none.', 'wordpress-seo' ) . '

'; $content .= ''; $content .= '
'; $wpseo_admin_pages->postbox( 'wpseo_export', __( 'MultiSite Settings', 'wordpress-seo' ), $content ); $content = '
'; $content .= '

' . __( 'Using this form you can reset a site to the default SEO settings.', 'wordpress-seo' ) . '

'; $content .= $wpseo_admin_pages->textinput( 'restoreblog', __( 'Blog ID', 'wordpress-seo' ), 'wpseo_ms' ); $content .= ''; $content .= '
'; $wpseo_admin_pages->postbox( 'wpseo_export', __( 'Restore site to default settings', 'wordpress-seo' ), $content ); $wpseo_admin_pages->admin_footer( false );