Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter marekmax

    (@marekmax)

    Hello text is there.

    Thank you.

    /**
    * Whether the current request is for the network administrative interface.
    *
    * e.g. /wp-admin/network/
    *
    * Does not check if the user is an administrator; use current_user_can()
    * for checking roles and capabilities.
    *
    * @since 3.1.0
    *
    * @global WP_Screen $current_screen
    *
    * @return bool True if inside WordPress network administration pages.
    */
    function is_network_admin() {
    if ( isset( $GLOBALS[‘current_screen’] ) ) {
    return $GLOBALS[‘current_screen’]->in_admin( ‘network’ );
    } elseif ( defined( ‘WP_NETWORK_ADMIN’ ) ) {
    return WP_NETWORK_ADMIN;
    }

    return false;
    }

    Thread Starter marekmax

    (@marekmax)

    I don’t know if I found the right file. But I hope so 🙂 /wp-admin/network/admin.php

    In the file, this is:

    Thank you.

    <?php
    /**
    * WordPress Network Administration Bootstrap
    *
    * @package WordPress
    * @subpackage Multisite
    * @since 3.1.0
    */

    define( ‘WP_NETWORK_ADMIN’, true );

    /** Load WordPress Administration Bootstrap */
    require_once( dirname( dirname( __FILE__ ) ) . ‘/admin.php’ );

    // Do not remove this check. It is required by individual network admin pages.
    if ( ! is_multisite() ) {
    wp_die( __( ‘Multisite support is not enabled.’ ) );
    }

    $redirect_network_admin_request = 0 !== strcasecmp( $current_blog->domain, $current_site->domain ) || 0 !== strcasecmp( $current_blog->path, $current_site->path );

    /**
    * Filters whether to redirect the request to the Network Admin.
    *
    * @since 3.2.0
    *
    * @param bool $redirect_network_admin_request Whether the request should be redirected.
    */
    $redirect_network_admin_request = apply_filters( ‘redirect_network_admin_request’, $redirect_network_admin_request );
    if ( $redirect_network_admin_request ) {
    wp_redirect( network_admin_url() );
    exit;
    }
    unset( $redirect_network_admin_request );

    Thread Starter marekmax

    (@marekmax)

    Hi, after deleting hosting and reinstalling WordPress, my error changed as follows.
    Thanks for help.

    Fatal error: Uncaught Error: Call to undefined function is_network_admin() in /data/d/0/d0a50f8b-bef4-4c49-9e8c-e3f47e631b0e/kvhprasnik.sk/web/wp-includes/script-loader.php:1768 Stack trace: #0 /data/d/0/d0a50f8b-bef4-4c49-9e8c-e3f47e631b0e/kvhprasnik.sk/web/wp-includes/class-wp-hook.php(286): wp_default_scripts(Object(WP_Scripts)) #1 /data/d/0/d0a50f8b-bef4-4c49-9e8c-e3f47e631b0e/kvhprasnik.sk/web/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(”, Array) #2 /data/d/0/d0a50f8b-bef4-4c49-9e8c-e3f47e631b0e/kvhprasnik.sk/web/wp-includes/plugin.php(531): WP_Hook->do_action(Array) #3 /data/d/0/d0a50f8b-bef4-4c49-9e8c-e3f47e631b0e/kvhprasnik.sk/web/wp-includes/class.wp-scripts.php(148): do_action_ref_array(‘wp_default_scri…’, Array) #4 /data/d/0/d0a50f8b-bef4-4c49-9e8c-e3f47e631b0e/kvhprasnik.sk/web/wp-includes/class.wp-scripts.php(131): WP_Scripts->init() #5 /data/d/0/d0a50f8b-bef4-4c49-9e8c-e3f47e631b0e/kvhprasnik.sk/web/wp-includes/functions.wp-scripts.php(23): WP_Scripts->__construct() #6 /data/d/0/d0a50f8b-be in /data/d/0/d0a50f8b-bef4-4c49-9e8c-e3f47e631b0e/kvhprasnik.sk/web/wp-includes/script-loader.php on line 1768

    Thread Starter marekmax

    (@marekmax)

    Hello,

    It is possible that the program is off. But easier it will probably delete the hosting and make the site again. Since I have backed up the texts and the stand was created in a simple style.

    Error message is still the same after shutdown.

    Thank you for willingness.

    Marek M.

    Thread Starter marekmax

    (@marekmax)

    I using WordPress version 5.2.4.

    Renaming Really Simple SSL does not help.

    Thank you.
    Marek M.

Viewing 5 replies - 1 through 5 (of 5 total)