Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix typos #2724

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

szepeviktor
Copy link

@szepeviktor szepeviktor commented Jul 19, 2023

🗒️ Description

Hello! I've ran typos on this project and found many typos.

Please consider running it on all of your projects.

Fixes

  1. documentation typos
  2. message typos
  3. comment typos
  4. source code typos

@szepeviktor
Copy link
Author

szepeviktor commented Jul 19, 2023

public function get_ticket_sale_infomation( $ticket_sold, $post_id ) {
public function get_ticket_sale_information( $ticket_sold, $post_id ) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here we need to create a method with the correct name and redirect this one to the correct one and call this one deprecated. There are premium add-ons that use this. I will push the change later this week.

@@ -3279,7 +3279,7 @@ public function get_tickets_unavailable_message( $tickets ) {
*
* @param bool $display_date
*/
$display_date = apply_filters( 'tribe_tickets_unvailable_message_date', $display_date = true );
$display_date = apply_filters( 'tribe_tickets_unavailable_message_date', $display_date = true );
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need to be deprecated properly.

Copy link
Author

@szepeviktor szepeviktor Sep 20, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bordoni Do you mean apply_filters_deprecated?

$display_date = apply_filters_deprecated( 'tribe_tickets_unvailable_message_date', $display_date = true );
$display_date = apply_filters( 'tribe_tickets_unavailable_message_date', $display_date );

https://developer.wordpress.org/reference/functions/apply_filters_deprecated/

@@ -3288,7 +3288,7 @@ public function get_tickets_unavailable_message( $tickets ) {
*
* @param bool $display_time
*/
$display_time = apply_filters( 'tribe_tickets_unvailable_message_time', $display_time = false );
$display_time = apply_filters( 'tribe_tickets_unavailable_message_time', $display_time = false );
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need to be deprecated properly.

@@ -3329,7 +3329,7 @@ public function get_tickets_unavailable_message( $tickets ) {
* @param string Unavailability message
* @param array Collection of tickets
*/
$message = apply_filters( 'event_tickets_unvailable_message', $message, $tickets );
$message = apply_filters( 'event_tickets_unavailable_message', $message, $tickets );
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need to be deprecated properly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants