WordPress.org

Make WordPress Core

Ticket #30126: 30126.diff

File 30126.diff, 18.6 KB (added by voldemortensen, 6 years ago)
  • wp-admin/custom-background.php

     
    282282<tr>
    283283<th scope="row"><?php _e('Remove Image'); ?></th>
    284284<td>
    285 <form method="post" action="">
     285<form method="post">
    286286<?php wp_nonce_field('custom-background-remove', '_wpnonce-custom-background-remove'); ?>
    287287<?php submit_button( __( 'Remove Background Image' ), 'button', 'remove-background', false ); ?><br/>
    288288<?php _e('This will remove the background image. You will not be able to restore any customizations.') ?>
     
    296296<tr>
    297297<th scope="row"><?php _e('Restore Original Image'); ?></th>
    298298<td>
    299 <form method="post" action="">
     299<form method="post">
    300300<?php wp_nonce_field('custom-background-reset', '_wpnonce-custom-background-reset'); ?>
    301301<?php submit_button( __( 'Restore Original Image' ), 'button', 'reset-background', false ); ?><br/>
    302302<?php _e('This will restore the original background image. You will not be able to restore any customizations.') ?>
     
    307307
    308308<tr>
    309309<th scope="row"><?php _e('Select Image'); ?></th>
    310 <td><form enctype="multipart/form-data" id="upload-form" class="wp-upload-form" method="post" action="">
     310<td><form enctype="multipart/form-data" id="upload-form" class="wp-upload-form" method="post">
    311311        <p>
    312312                <label for="upload"><?php _e( 'Choose an image from your computer:' ); ?></label><br />
    313313                <input type="file" id="upload" name="import" />
     
    328328</table>
    329329
    330330<h3><?php _e('Display Options') ?></h3>
    331 <form method="post" action="">
     331<form method="post">
    332332<table class="form-table">
    333333<tbody>
    334334<?php if ( get_background_image() ) : ?>
  • wp-admin/edit-comments.php

     
    224224
    225225<?php $wp_list_table->views(); ?>
    226226
    227 <form id="comments-form" action="" method="get">
     227<form id="comments-form" method="get">
    228228
    229229<?php $wp_list_table->search_box( __( 'Search Comments' ), 'comment' ); ?>
    230230
  • wp-admin/edit-tags.php

     
    308308endif; ?>
    309309<div id="ajax-response"></div>
    310310
    311 <form class="search-form" action="" method="get">
     311<form class="search-form" method="get">
    312312<input type="hidden" name="taxonomy" value="<?php echo esc_attr($taxonomy); ?>" />
    313313<input type="hidden" name="post_type" value="<?php echo esc_attr($post_type); ?>" />
    314314
     
    321321
    322322<div id="col-right">
    323323<div class="col-wrap">
    324 <form id="posts-filter" action="" method="post">
     324<form id="posts-filter" method="post">
    325325<input type="hidden" name="taxonomy" value="<?php echo esc_attr($taxonomy); ?>" />
    326326<input type="hidden" name="post_type" value="<?php echo esc_attr($post_type); ?>" />
    327327
  • wp-admin/edit.php

     
    307307
    308308<?php $wp_list_table->views(); ?>
    309309
    310 <form id="posts-filter" action="" method="get">
     310<form id="posts-filter" method="get">
    311311
    312312<?php $wp_list_table->search_box( $post_type_object->labels->search_items, 'post' ); ?>
    313313
  • wp-admin/export.php

     
    152152<p><?php _e('Once you&#8217;ve saved the download file, you can use the Import function in another WordPress installation to import the content from this site.'); ?></p>
    153153
    154154<h3><?php _e( 'Choose what to export' ); ?></h3>
    155 <form action="" method="get" id="export-filters">
     155<form method="get" id="export-filters">
    156156<input type="hidden" name="download" value="true" />
    157157<p><label><input type="radio" name="content" value="all" checked="checked" /> <?php _e( 'All content' ); ?></label></p>
    158158<p class="description"><?php _e( 'This will contain all of your posts, pages, comments, custom fields, terms, navigation menus and custom posts.' ); ?></p>
  • wp-admin/includes/class-wp-posts-list-table.php

     
    930930
    931931        ?>
    932932
    933         <form method="get" action=""><table style="display: none"><tbody id="inlineedit">
     933        <form method="get"><table style="display: none"><tbody id="inlineedit">
    934934                <?php
    935935                $hclass = count( $hierarchical_taxonomies ) ? 'post' : 'page';
    936936                $bulk = 0;
  • wp-admin/includes/class-wp-terms-list-table.php

     
    416416                        return;
    417417?>
    418418
    419         <form method="get" action=""><table style="display: none"><tbody id="inlineedit">
     419        <form method="get"><table style="display: none"><tbody id="inlineedit">
    420420                <tr id="inline-edit" class="inline-edit-row" style="display: none"><td colspan="<?php echo $this->get_column_count(); ?>" class="colspanchange">
    421421
    422422                        <fieldset><div class="inline-edit-col">
  • wp-admin/includes/dashboard.php

     
    155155}
    156156
    157157function _wp_dashboard_control_callback( $dashboard, $meta_box ) {
    158         echo '<form action="" method="post" class="dashboard-widget-control-form">';
     158        echo '<form method="post" class="dashboard-widget-control-form">';
    159159        wp_dashboard_trigger_widget_control( $meta_box['id'] );
    160160        wp_nonce_field( 'edit-dashboard-widget_' . $meta_box['id'], 'dashboard-widget-nonce' );
    161161        echo '<input type="hidden" name="widget_id" value="' . esc_attr($meta_box['id']) . '" />';
  • wp-admin/includes/media.php

     
    23012301
    23022302?>
    23032303
    2304 <form id="filter" action="" method="get">
     2304<form id="filter" method="get">
    23052305<input type="hidden" name="type" value="<?php echo esc_attr( $type ); ?>" />
    23062306<input type="hidden" name="tab" value="<?php echo esc_attr( $tab ); ?>" />
    23072307<input type="hidden" name="post_id" value="<?php echo (int) $post_id; ?>" />
  • wp-admin/includes/plugin-install.php

     
    170170                $input_attrs = 'class="wp-filter-search" placeholder="' . esc_attr__( 'Search Plugins' ) . '" ';
    171171        }
    172172
    173         ?><form class="search-form search-plugins" method="get" action="">
     173        ?><form class="search-form search-plugins" method="get">
    174174                <input type="hidden" name="tab" value="search" />
    175175                <?php if ( $type_selector ) : ?>
    176176                <select name="type" id="typeselector">
     
    216216        $user = ! empty( $_GET['user'] ) ? wp_unslash( $_GET['user'] ) : get_user_option( 'wporg_favorites' );
    217217        ?>
    218218        <p class="install-help"><?php _e( 'If you have marked plugins as favorites on WordPress.org, you can browse them here.' ); ?></p>
    219         <form method="get" action="">
     219        <form method="get">
    220220                <input type="hidden" name="tab" value="favorites" />
    221221                <p>
    222222                        <label for="user"><?php _e( 'Your WordPress.org username:' ); ?></label>
     
    240240        }
    241241
    242242        ?>
    243         <form id="plugin-filter" action="" method="post">
     243        <form id="plugin-filter" method="post">
    244244                <?php $wp_list_table->display(); ?>
    245245        </form>
    246246        <?php
  • wp-admin/includes/screen.php

     
    10231023
    10241024                ?>
    10251025                <div id="screen-options-wrap" class="hidden" tabindex="-1" aria-label="<?php esc_attr_e('Screen Options Tab'); ?>">
    1026                 <form id="adv-settings" action="" method="post">
     1026                <form id="adv-settings" method="post">
    10271027                <?php if ( isset( $wp_meta_boxes[ $this->id ] ) || $this->get_option( 'per_page' ) || ( $columns && empty( $columns['_title'] ) ) ) : ?>
    10281028                        <h5><?php _e( 'Show on screen' ); ?></h5>
    10291029                <?php
  • wp-admin/includes/template.php

     
    432432        }
    433433
    434434?>
    435 <form method="get" action="">
     435<form method="get">
    436436<?php if ( $table_row ) : ?>
    437437<table style="display:none;"><tbody id="com-reply"><tr id="replyrow" style="display:none;"><td colspan="<?php echo $wp_list_table->get_column_count(); ?>" class="colspanchange">
    438438<?php else : ?>
  • wp-admin/includes/theme-install.php

     
    5757        if ( ! $type_selector )
    5858                echo '<p class="install-help">' . __( 'Search for themes by keyword.' ) . '</p>';
    5959        ?>
    60 <form id="search-themes" method="get" action="">
     60<form id="search-themes" method="get">
    6161        <input type="hidden" name="tab" value="search" />
    6262        <?php if ( $type_selector ) : ?>
    6363        <label class="screen-reader-text" for="typeselector"><?php _e('Type of search'); ?></label>
     
    9999<h4><?php _e('Feature Filter') ?></h4>
    100100<p class="install-help"><?php _e( 'Find a theme based on specific features.' ); ?></p>
    101101
    102 <form method="get" action="">
     102<form method="get">
    103103        <input type="hidden" name="tab" value="search" />
    104104        <?php
    105105        $feature_list = get_theme_feature_list();
  • wp-admin/includes/widgets.php

     
    205205        </div>
    206206
    207207        <div class="widget-inside">
    208         <form action="" method="post">
     208        <form method="post">
    209209        <div class="widget-content">
    210210<?php
    211211        if ( isset($control['callback']) )
  • wp-admin/link-manager.php

     
    8484}
    8585?>
    8686
    87 <form id="posts-filter" action="" method="get">
     87<form id="posts-filter" method="get">
    8888
    8989<?php $wp_list_table->search_box( __( 'Search Links' ), 'link' ); ?>
    9090
  • wp-admin/media.php

     
    111111<?php } ?>
    112112</h2>
    113113
    114 <form method="post" action="" class="media-upload-form" id="media-single-form">
     114<form method="post" class="media-upload-form" id="media-single-form">
    115115<p class="submit" style="padding-bottom: 0;">
    116116<?php submit_button( __( 'Update Media' ), 'primary', 'save', false ); ?>
    117117</p>
  • wp-admin/my-sites.php

     
    6464        echo '</p>';
    6565else :
    6666?>
    67 <form id="myblogs" action="" method="post">
     67<form id="myblogs" method="post">
    6868        <?php
    6969        choose_primary_blog();
    7070        /**
  • wp-admin/nav-menus.php

     
    684684
    685685                <div class="clear"></div>
    686686
    687                 <form id="nav-menu-meta" action="" class="nav-menu-meta" method="post" enctype="multipart/form-data">
     687                <form id="nav-menu-meta" class="nav-menu-meta" method="post" enctype="multipart/form-data">
    688688                        <input type="hidden" name="menu" id="nav-menu-meta-object-id" value="<?php echo esc_attr( $nav_menu_selected_id ); ?>" />
    689689                        <input type="hidden" name="action" value="add-menu-item" />
    690690                        <?php wp_nonce_field( 'add-menu_item', 'menu-settings-column-nonce' ); ?>
     
    694694        </div><!-- /#menu-settings-column -->
    695695        <div id="menu-management-liquid">
    696696                <div id="menu-management">
    697                         <form id="update-nav-menu" action="" method="post" enctype="multipart/form-data">
     697                        <form id="update-nav-menu" method="post" enctype="multipart/form-data">
    698698                                <div class="menu-edit <?php if ( $add_new_screen ) echo 'blank-slate'; ?>">
    699699                                        <?php
    700700                                        wp_nonce_field( 'closedpostboxes', 'closedpostboxesnonce', false );
  • wp-admin/network/site-themes.php

     
    167167
    168168<p><?php _e( 'Network enabled themes are not shown on this screen.' ) ?></p>
    169169
    170 <form method="get" action="">
     170<form method="get">
    171171<?php $wp_list_table->search_box( __( 'Search Installed Themes' ), 'theme' ); ?>
    172172<input type="hidden" name="id" value="<?php echo esc_attr( $id ) ?>" />
    173173</form>
  • wp-admin/network/site-users.php

     
    235235        }
    236236endif; ?>
    237237
    238 <form class="search-form" action="" method="get">
     238<form class="search-form" method="get">
    239239<?php $wp_list_table->search_box( __( 'Search Users' ), 'user' ); ?>
    240240<input type="hidden" name="id" value="<?php echo esc_attr( $id ) ?>" />
    241241</form>
  • wp-admin/network/sites.php

     
    261261
    262262<?php echo $msg; ?>
    263263
    264 <form action="" method="get" id="ms-search">
     264<form method="get" id="ms-search">
    265265<?php $wp_list_table->search_box( __( 'Search Sites' ), 'site' ); ?>
    266266<input type="hidden" name="action" value="blogs" />
    267267</form>
  • wp-admin/network/users.php

     
    284284
    285285        <?php $wp_list_table->views(); ?>
    286286
    287         <form action="" method="get" class="search-form">
     287        <form method="get" class="search-form">
    288288                <?php $wp_list_table->search_box( __( 'Search Users' ), 'all-user' ); ?>
    289289        </form>
    290290
  • wp-admin/network.php

     
    179179                die();
    180180        }
    181181
    182         echo '<form method="post" action="">';
     182        echo '<form method="post">';
    183183
    184184        wp_nonce_field( 'install-network-1' );
    185185
  • wp-admin/plugins.php

     
    456456
    457457<?php $wp_list_table->views(); ?>
    458458
    459 <form method="get" action="">
     459<form method="get">
    460460<?php $wp_list_table->search_box( __( 'Search Installed Plugins' ), 'plugin' ); ?>
    461461</form>
    462462
    463 <form method="post" action="">
     463<form method="post">
    464464
    465465<input type="hidden" name="plugin_status" value="<?php echo esc_attr($status) ?>" />
    466466<input type="hidden" name="paged" value="<?php echo esc_attr($page) ?>" />
  • wp-admin/upload.php

     
    277277<div id="message" class="updated"><p><?php echo $message; ?></p></div>
    278278<?php } ?>
    279279
    280 <form id="posts-filter" action="" method="get">
     280<form id="posts-filter" method="get">
    281281
    282282<?php $wp_list_table->views(); ?>
    283283
  • wp-admin/user-new.php

     
    287287 * @since 3.0.0
    288288 */
    289289?>
    290 <form action="" method="post" name="adduser" id="adduser" class="validate" novalidate="novalidate"<?php do_action( 'user_new_form_tag' );?>>
     290<form method="post" name="adduser" id="adduser" class="validate" novalidate="novalidate"<?php do_action( 'user_new_form_tag' );?>>
    291291<input name="action" type="hidden" value="adduser" />
    292292<?php wp_nonce_field( 'add-user', '_wpnonce_add-user' ) ?>
    293293
     
    335335?>
    336336<p><?php _e('Create a brand new user and add them to this site.'); ?></p>
    337337<?php /** This action is documented in wp-admin/user-new.php */ ?>
    338 <form action="" method="post" name="createuser" id="createuser" class="validate" novalidate="novalidate"<?php do_action( 'user_new_form_tag' );?>>
     338<form method="post" name="createuser" id="createuser" class="validate" novalidate="novalidate"<?php do_action( 'user_new_form_tag' );?>>
    339339<input name="action" type="hidden" value="createuser" />
    340340<?php wp_nonce_field( 'create-user', '_wpnonce_create-user' ); ?>
    341341<?php
  • wp-admin/users.php

     
    209209
    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; ?>
    215215
     
    321321
    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; ?>
    327327
     
    443443
    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' ); ?>
    449449
  • wp-admin/widgets.php

     
    417417</div>
    418418</div>
    419419</div>
    420 <form action="" method="post">
     420<form method="post">
    421421<?php wp_nonce_field( 'save-sidebar-widgets', '_wpnonce_widgets', false ); ?>
    422422</form>
    423423<br class="clear" />
  • wp-includes/class-wp-customize-widgets.php

     
    952952
    953953                call_user_func_array( 'wp_widget_control', $args );
    954954                $replacements = array(
    955                         '<form action="" method="post">' => '<div class="form">',
     955                        '<form method="post">' => '<div class="form">',
    956956                        '</form>' => '</div><!-- .form -->',
    957957                );
    958958