Only output Save Changes in My Sites when a user is a member of more than one site.
The conditional also checks for the existence of filters that may otherwise alter the HTML in My Sites to include extra form inputs for these users. If a filter is in use, the Save Changes button will display. Props @Oxymoron, @obenland. Fixes #32645. Built from https://develop.svn.wordpress.org/trunk@33080 git-svn-id: http://core.svn.wordpress.org/trunk@33051 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
ddff6fe471
commit
5ab785b054
|
@ -113,9 +113,13 @@ else :
|
||||||
echo "</li>";
|
echo "</li>";
|
||||||
}?>
|
}?>
|
||||||
</ul>
|
</ul>
|
||||||
<input type="hidden" name="action" value="updateblogsettings" />
|
<?php
|
||||||
<?php wp_nonce_field( 'update-my-sites' ); ?>
|
if ( count( $blogs ) > 1 || has_action( 'myblogs_allblogs_options' ) || has_filter( 'myblogs_options' ) ) {
|
||||||
<?php submit_button(); ?>
|
?><input type="hidden" name="action" value="updateblogsettings" /><?php
|
||||||
|
wp_nonce_field( 'update-my-sites' );
|
||||||
|
submit_button();
|
||||||
|
}
|
||||||
|
?>
|
||||||
</form>
|
</form>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '4.3-beta1-33079';
|
$wp_version = '4.3-beta1-33080';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
Loading…
Reference in New Issue