Git Product home page Git Product logo

contact-form-7's Introduction

Contact Form 7

This is the development repository for Contact Form 7, a WordPress plugin that lets you manage contact forms on your website. A copy of the plugin package is downloadable from the WordPress.org Plugin Directory.

License

This plugin is released under the GNU General Public License Version 2 (GPLv2). For details, see license.txt.

Getting started

Install the Contact Form 7 plugin through the Add Plugins screen (Plugins > Add New). After activating the plugin, the Contact menu will appear in the left sidebar. For basic usage, read Getting started with Contact Form 7 and other documentation on the official website for the plugin.

Support

Support for this plugin is primarily provided within the volunteer-based WordPress.org support forums. The official website also provides custom development and professional support services. See Support for more information.

Contributing to Contact Form 7

You can contribute to the project of Contact Form 7 in several ways. For more information, see How to contribute to Contact Form 7.



Code is Poetry.

contact-form-7's People

Contributors

dependabot[bot] avatar iandelmar avatar koloml avatar konikoni428 avatar otaran avatar puleeno avatar pwkip avatar sherylhohman avatar takayukister avatar yordansoares avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

contact-form-7's Issues

LTR is always right for code-style input

Related support topic: Bug with RTL languages on input fields with numbers and spaces

Code-style input like URL, email or telephone number should be displayed in Left-to-Right direction. This is true even in languages that are written in Right-to-Left direction like Hebrew or Arabic.

This is not a problem in most cases because the CSS stylesheet used on the site applies appropriate direction style rules, but some WordPress themes don't care about it. It is safer to set such rules in the plugin's stylesheet by default.

DNS lookup in form-tag field

When providing a form-tag field with a URL, the server makes a DNS query to that URL.

A form with the following form-tag:
[text* textfield akismet:author placeholder "ABC"]

If I enter an URL (http://www.example.org) in the input field "textfield" the server makes a DNS query for www.example.org. Why is that? This doesn't feel like something the plugin should do but when I'm looking for a cause I can't find anything else causing this to happen.

I've tried to locate where in the plugin code this would occur but can't find anything that would cause this behavior. I want to make sure if this is an issue with the plugin.

Prepare for 5.1.9 release

  • Update Version and the WPCF7_VERSION constant to 5.1.9 in wp-contact-form-7.php
  • Update Stable tag to 5.1.8 in readme.txt
  • Add 5.1.9 change log to readme.txt

Call to a member function to_array()

Hi @takayukister

I used Version 5.2.1 and it produced an error:
PHP Fatal error: Uncaught Error: Call to a member function to_array() on null in ... .../public_html/wp-content/plugins/contact-form-7/includes/rest-api.php:397

Would you please have a look?

Thanks

Prepare for 5.2 release

  • Update Requires at least in readme.txt and the WPCF7_REQUIRED_WP_VERSION constant in wp-contact-form-7.php to 5.3
  • Update Version and the WPCF7_VERSION constant in wp-contact-form-7.php to 5.2
  • Update Stable tag in readme.txt to the current stable version (5.1.9)
  • Add 5.2 change log to readme.txt

Prepare for 5.2.2 release

  • Update Version and the WPCF7_VERSION constant in wp-contact-form-7.php to 5.2.2
  • Add 5.2.2 change log to readme.txt

[Bug] Displaying empty alert response field in 5.2 release

The latest release (5.2) is returning an empty response alert field (with red border) in our Avada theme

<div class="fusion-alert alert custom alert-custom fusion-alert-center wpcf7-response-output fusion-alert-capitalize alert-dismissable" style="border-width:1px;"><button type="button" class="close toggle-alert" data-dismiss="alert" aria-hidden="true">ร—</button><div class="fusion-alert-content-wrapper"><span class="fusion-alert-content"></span></div></div>

This is not displayed after we rolled back to the (5.19) previous release.

Flamingo: Use id() instead of id

In Flamingo 2.2, the id property of Flamingo_Contact and Flamingo_Inbound_Message objects has become a private property, and id() is recommended to use as an alternative.

REST API: permission_callback is required since WordPress 5.5

If it's missing you'll see a PHP notice like this:

PHP Notice:  register_rest_route was called <strong>incorrectly</strong>. The REST API route definition for <code>contact-form-7/v1/contact-forms/(?P<id>\d+)/feedback</code> is missing the required <code>permission_callback</code> argument. For REST API routes that are intended to be public, use <code>__return_true</code> as the permission callback.

For details about permission_callback, see the REST API Handbook.

Support set_screen_option_{$option} filter hook

WordPress 5.4.2 has introduced a new filter hook that just works as the existing set-screen-option hook as part of security enhancement. This change also causes a minor issue that Number of items per page in the Screen Options is not saved. To fix the issue, support both of the set_screen_option_{$option} and set-screen-option hooks. The filter registration for the set-screen-option hook will become unnecessary when the required WP version rises to 5.4.

Change hook names

The wpcf7_ajax_json_echo and wpcf7_ajax_onload filter hooks used in includes/rest-api.php have a very old origin (WP REST API didn't exist at the time) and now they sound weird and too different from what they are in reality.

So, let's rename them as:

  • wpcf7_ajax_json_echo => wpcf7_feedback_response
  • wpcf7_ajax_onload => wpcf7_refill_response

Keep old hooks available for backward compatibility.

Role is unchangeable

Role is unchangeable during a play, and all the men and women are merely players.

Prepare for 5.1.8 release

  • Add 5.1.8 change log to readme.txt
  • Update Version and the WPCF7_VERSION constant to 5.1.8 in wp-contact-form-7.php

Load scripts & styles only if they are necessary

At the moment Contact Form 7 loads Scripts & Styles on every page load on the front end. Realistically the contact form is only used on a few pages.

I would suggest loading the scripts and styles only on pages where the shortcode is included.

WordPress provided two functions to include a script / style:

wp_register_script and wp_enqueue_script
wp_register_style and wp_enqueue_style

The register function just register the script / style and does not load it on the frontend. If you later call enqueue with just the same handle, it will load the script / style on the frontend.

I would suggest changing all enqueue here: https://github.com/takayukister/contact-form-7/blob/master/includes/controller.php to register and call wp_enqueue_script( 'contact-form-7' ) and wp_enqueue_style( 'contact-form-7' ) if the shortcode is included: https://github.com/takayukister/contact-form-7/blob/master/includes/contact-form-functions.php#L93

It's no problem to run wp_enqueue_script with the handle multiple times and works great in the shortcode function.

Prepare for 5.2.1 release

  • Update Stable tag in readme.txt to the current stable version (5.2)
  • Update Version and the WPCF7_VERSION constant in wp-contact-form-7.php to 5.2.1
  • Update Tested up to in readme.txt to 5.5
  • Add 5.2.1 change log to readme.txt

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.