Make WordPress Core

Ticket #32645: 32645.diff

File 32645.diff, 559 bytes (added by obenland, 9 years ago)

Shows button if user has one site and no extra settings are added.

  • src/wp-admin/my-sites.php

     
    135135        </table>
    136136        <input type="hidden" name="action" value="updateblogsettings" />
    137137        <?php wp_nonce_field( 'update-my-sites' ); ?>
    138         <?php submit_button(); ?>
     138        <?php
     139                if ( count( $blogs ) > 1 || has_action( 'myblogs_allblogs_options' ) || has_filter( 'myblogs_options' ) ) :
     140                        submit_button();
     141                endif;
     142        ?>
    139143        </form>
    140144<?php endif; ?>
    141145        </div>