Make WordPress Core

Ticket #32645: 32645.patch

File 32645.patch, 535 bytes (added by Oxymoron, 9 years ago)

Removes Save Changes button when there is only 1 site

  • 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        $all_blogs = get_blogs_of_user( get_current_user_id() );
     140        if ( 1 < count( $all_blogs ) ) {
     141                submit_button();
     142        }
     143        ?>
    139144        </form>
    140145<?php endif; ?>
    141146        </div>