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/custom-background.php

    r31133 r31200  
    238238<th scope="row"><?php _e('Remove Image'); ?></th>
    239239<td>
    240 <form method="post" action="">
     240<form method="post">
    241241<?php wp_nonce_field('custom-background-remove', '_wpnonce-custom-background-remove'); ?>
    242242<?php submit_button( __( 'Remove Background Image' ), 'button', 'remove-background', false ); ?><br/>
     
    252252<th scope="row"><?php _e('Restore Original Image'); ?></th>
    253253<td>
    254 <form method="post" action="">
     254<form method="post">
    255255<?php wp_nonce_field('custom-background-reset', '_wpnonce-custom-background-reset'); ?>
    256256<?php submit_button( __( 'Restore Original Image' ), 'button', 'reset-background', false ); ?><br/>
     
    263263<tr>
    264264<th scope="row"><?php _e('Select Image'); ?></th>
    265 <td><form enctype="multipart/form-data" id="upload-form" class="wp-upload-form" method="post" action="">
     265<td><form enctype="multipart/form-data" id="upload-form" class="wp-upload-form" method="post">
    266266    <p>
    267267        <label for="upload"><?php _e( 'Choose an image from your computer:' ); ?></label><br />
     
    284284
    285285<h3><?php _e('Display Options') ?></h3>
    286 <form method="post" action="">
     286<form method="post">
    287287<table class="form-table">
    288288<tbody>
Note: See TracChangeset for help on using the changeset viewer.