Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TGM-Plugin-Activation - Multisite Installs can download from WordPress Plugin Directory #105

Closed
wants to merge 3 commits into from

Commits on Oct 18, 2012

  1. Added additional support for multisite. All installation of wordpress…

    … plugins from the WordPress Plugin Directory
    
    Made changes because I could not install wordpress plugins from the WordPress Plugin Directory.
    -------------------
    
    when using wordpress version 3.4.2 with multisite installed
    the plugins listed did not correctly point to the WordPress Plugin Directory.
    
    
    The problem was with the actual location of the plugin-install.php.
    
    single site install of wordpress uses:
    wp-admin/plugin-install.php 
    
    multisite uses
    wp-admin/network/plugin-install.php 
    
    Added the code
    --------------
    if ( is_multisite() ) {
         $this->plugin_install_file = admin_url( 'network/plugin-install.php' );}
    
    else{
         $this->plugin_install_file = admin_url( 'plugin-install.php' ); }
    
    -----replaced  code------------------------
    
    
    replaced:  admin_url( 'plugin-install.php' )
    with:      $this->plugin_install_file
    moyarich committed Oct 18, 2012
    Configuration menu
    Copy the full SHA
    54c03e1 View commit details
    Browse the repository at this point in the history

Commits on Oct 24, 2012

  1. Added docblock, removed brackets

    Added docblock to describe the purpose of the code changes.
    Removed bracket from if and else statements.
    moyarich committed Oct 24, 2012
    Configuration menu
    Copy the full SHA
    888b675 View commit details
    Browse the repository at this point in the history

Commits on Dec 28, 2012

  1. Updated to use the proper function for a multisite install

    Updated  to use the proper function for a multisite install.
    //uses network_admin_url() to pull the url of the base blog, because multisite plugins can only be installed from the base blog.
    
    
    $this->plugin_install_file = admin_url( 'network/plugin-install.php' );
    
    $this->plugin_install_file = network_admin_url('plugin-install.php');
    moyarich committed Dec 28, 2012
    Configuration menu
    Copy the full SHA
    e50ca7e View commit details
    Browse the repository at this point in the history