Make WordPress Core

Changeset 42771


Ignore:
Timestamp:
03/02/2018 05:16:37 PM (9 years ago)
Author:
ocean90
Message:

Import: Avoid counting an uncountable type when reading arguments passed to a script.

Props josephscott.
Fixes #42898.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-importer.php

    r42343 r42771  
    282282function get_cli_args( $param, $required = false ) {
    283283        $args = $_SERVER['argv'];
     284        if ( ! is_array( $args ) ) {
     285                $args = array();
     286        }
    284287
    285288        $out = array();
Note: See TracChangeset for help on using the changeset viewer.