Make WordPress Core


Ignore:
Timestamp:
01/16/2015 04:15:52 AM (9 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/users.php

    r30356 r31200  
    210210    include( ABSPATH . 'wp-admin/admin-header.php' );
    211211?>
    212 <form action="" method="post" name="updateusers" id="updateusers">
     212<form method="post" name="updateusers" id="updateusers">
    213213<?php wp_nonce_field('delete-users') ?>
    214214<?php echo $referer; ?>
     
    322322    include( ABSPATH . 'wp-admin/admin-header.php' );
    323323?>
    324 <form action="" method="post" name="updateusers" id="updateusers">
     324<form method="post" name="updateusers" id="updateusers">
    325325<?php wp_nonce_field('remove-users') ?>
    326326<?php echo $referer; ?>
     
    444444<?php $wp_list_table->views(); ?>
    445445
    446 <form action="" method="get">
     446<form method="get">
    447447
    448448<?php $wp_list_table->search_box( __( 'Search Users' ), 'user' ); ?>
Note: See TracChangeset for help on using the changeset viewer.