Skip to:
Content

BuddyPress.org

Changeset 13613


Ignore:
Timestamp:
10/19/2023 10:08:52 PM (19 months ago)
Author:
imath
Message:

Show BP Classic plugin details when requested, on page load

Backports part of [13594] to branch 11.0.

See #9002
See #9007

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/11.0/src/bp-core/classes/class-bp-admin.php

    r13612 r13613  
    15621562        }
    15631563
     1564        if ( isset( $_GET['show'] ) && 'bp-classic' === $_GET['show'] ) {
     1565            wp_add_inline_script(
     1566                'plugin-install',
     1567                '
     1568                ( function() {
     1569                    document.onreadystatechange = function()  {
     1570                        if ( document.readyState === "complete" ) {
     1571                            document.querySelector( \'.plugin-card-bp-classic .open-plugin-details-modal\' ).click();
     1572                        }
     1573                    }
     1574                } )();
     1575                '
     1576            );
     1577        }
     1578
    15641579        // Display the "buddypress" favorites.
    15651580        display_plugins_table();
Note: See TracChangeset for help on using the changeset viewer.