WordPress.org

Make WordPress Core


Ignore:
Timestamp:
01/16/2015 04:15:52 AM (7 years ago)
Author:
wonderboymusic
Message:

In HTML5, the action attribute is no longer required. Remove this attribute when empty.

The admin HTML is served with the HTML5 doctype.

"The action and formaction content attributes, if specified, must have a value that is a valid non-empty URL potentially surrounded by spaces."
http://www.w3.org/html/wg/drafts/html/master/forms.html#attr-fs-action

Props voldemortensen.
Fixes #30126.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/user-new.php

    r30855 r31200  
    281281    }
    282282?>
    283 <form action="" method="post" name="adduser" id="adduser" class="validate" novalidate="novalidate"<?php
     283<form method="post" name="adduser" id="adduser" class="validate" novalidate="novalidate"<?php
    284284    /**
    285285     * Fires inside the adduser form tag.
     
    335335?>
    336336<p><?php _e('Create a brand new user and add them to this site.'); ?></p>
    337 <form action="" method="post" name="createuser" id="createuser" class="validate" novalidate="novalidate"<?php
     337<form method="post" name="createuser" id="createuser" class="validate" novalidate="novalidate"<?php
    338338    /** This action is documented in wp-admin/user-new.php */
    339339    do_action( 'user_new_form_tag' );
Note: See TracChangeset for help on using the changeset viewer.