WordPress.org

Ready to get started?Download WordPress

Forums

WordPress MU Domain Mapping
PHP Notice: unidentified index $_POST[ 'action' ] (1 post)

  1. Chip Bennett
    Theme Review Admin
    Posted 2 years ago #

    Refer to domain-mapping.php, line 142:

    switch( $_POST[ 'action' ] )

    Causes this error:

    Notice: Undefined index: action in /home/chipbenn/public_html/design/wp-content/plugins/wordpress-mu-domain-mapping/domain_mapping.php on line 142

    Not sure it's the best approach, but I fixed as follows:

    $post_action = ( isset( $_POST[ 'action' ] ) ? $_POST[ 'action' ] : false );
    	switch( $post_action ) {

    Want me to submit a patch?

    http://wordpress.org/extend/plugins/wordpress-mu-domain-mapping/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic