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

  1. Chip Bennett
    Theme Review Admin
    Posted 4 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?


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WordPress MU Domain Mapping
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic