Skip to:
Content

bbPress.org

Changeset 6806


Ignore:
Timestamp:
04/23/2018 03:19:38 AM (3 years ago)
Author:
johnjamesjacoby
Message:

Templates: remove action attribute from several forms.

This improves support for third-party implementations (shortcodes, BuddyPress, etc...) because template parts can be called from anywhere.

Fixes #3030.

Location:
trunk/src/templates/default/bbpress
Files:
9 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/templates/default/bbpress/form-forum.php

    r6452 r6806  
    2525    <div id="new-forum-<?php bbp_forum_id(); ?>" class="bbp-forum-form">
    2626
    27         <form id="new-post" name="new-post" method="post" action="<?php bbp_forum_permalink(); ?>">
     27        <form id="new-post" name="new-post" method="post">
    2828
    2929            <?php do_action( 'bbp_theme_before_forum_form' ); ?>
  • trunk/src/templates/default/bbpress/form-reply-move.php

    r6452 r6806  
    2121        <div id="move-reply-<?php bbp_topic_id(); ?>" class="bbp-reply-move">
    2222
    23             <form id="move_reply" name="move_reply" method="post" action="<?php bbp_reply_permalink(); ?>">
     23            <form id="move_reply" name="move_reply" method="post">
    2424
    2525                <fieldset class="bbp-form">
  • trunk/src/templates/default/bbpress/form-reply.php

    r6714 r6806  
    2323    <div id="new-reply-<?php bbp_topic_id(); ?>" class="bbp-reply-form">
    2424
    25         <form id="new-post" name="new-post" method="post" action="<?php bbp_reply_permalink() ?>">
     25        <form id="new-post" name="new-post" method="post">
    2626
    2727            <?php do_action( 'bbp_theme_before_reply_form' ); ?>
  • trunk/src/templates/default/bbpress/form-search.php

    r6630 r6806  
    1414
    1515    <div class="bbp-search-form">
    16         <form role="search" method="get" id="bbp-search-form" action="<?php bbp_search_url(); ?>">
     16        <form role="search" method="get" id="bbp-search-form">
    1717            <div>
    1818                <label class="screen-reader-text hidden" for="bbp_search"><?php esc_html_e( 'Search for:', 'bbpress' ); ?></label>
  • trunk/src/templates/default/bbpress/form-topic-merge.php

    r6452 r6806  
    2121        <div id="merge-topic-<?php bbp_topic_id(); ?>" class="bbp-topic-merge">
    2222
    23             <form id="merge_topic" name="merge_topic" method="post" action="<?php bbp_topic_permalink(); ?>">
     23            <form id="merge_topic" name="merge_topic" method="post">
    2424
    2525                <fieldset class="bbp-form">
  • trunk/src/templates/default/bbpress/form-topic-split.php

    r6452 r6806  
    2121        <div id="split-topic-<?php bbp_topic_id(); ?>" class="bbp-topic-split">
    2222
    23             <form id="split_topic" name="split_topic" method="post" action="<?php bbp_topic_permalink(); ?>">
     23            <form id="split_topic" name="split_topic" method="post">
    2424
    2525                <fieldset class="bbp-form">
  • trunk/src/templates/default/bbpress/form-topic-tag.php

    r6452 r6806  
    3535                </div>
    3636
    37                 <form id="rename_tag" name="rename_tag" method="post" action="<?php bbp_topic_tag_link(); ?>">
     37                <form id="rename_tag" name="rename_tag" method="post">
    3838
    3939                    <div>
     
    7575                </div>
    7676
    77                 <form id="merge_tag" name="merge_tag" method="post" action="<?php bbp_topic_tag_link(); ?>">
     77                <form id="merge_tag" name="merge_tag" method="post">
    7878
    7979                    <div>
     
    112112                    </div>
    113113
    114                     <form id="delete_tag" name="delete_tag" method="post" action="<?php bbp_topic_tag_link(); ?>">
     114                    <form id="delete_tag" name="delete_tag" method="post">
    115115
    116116                        <div class="bbp-submit-wrapper">
  • trunk/src/templates/default/bbpress/form-topic.php

    r6714 r6806  
    3333    <div id="new-topic-<?php bbp_topic_id(); ?>" class="bbp-topic-form">
    3434
    35         <form id="new-post" name="new-post" method="post" action="<?php bbp_topic_permalink(); ?>">
     35        <form id="new-post" name="new-post" method="post">
    3636
    3737            <?php do_action( 'bbp_theme_before_topic_form' ); ?>
  • trunk/src/templates/default/bbpress/form-user-edit.php

    r6617 r6806  
    1313?>
    1414
    15 <form id="bbp-your-profile" action="<?php bbp_user_profile_edit_url( bbp_get_displayed_user_id() ); ?>" method="post" enctype="multipart/form-data">
     15<form id="bbp-your-profile" method="post" enctype="multipart/form-data">
    1616
    1717    <h2 class="entry-title"><?php esc_html_e( 'Name', 'bbpress' ) ?></h2>
Note: See TracChangeset for help on using the changeset viewer.