From c2ec3287982ad8a742057043b98077eebbd62aa8 Mon Sep 17 00:00:00 2001 From: Savvas Hadjigeorgiou Date: Fri, 12 Nov 2021 08:32:21 +0200 Subject: [PATCH] Escapes based on phpcs #10 --- includes/admin/class-sp-admin-taxonomies.php | 28 ++++++------- includes/admin/class-sp-admin-welcome.php | 44 ++++++++++---------- includes/admin/class-sp-admin.php | 6 +-- 3 files changed, 39 insertions(+), 39 deletions(-) diff --git a/includes/admin/class-sp-admin-taxonomies.php b/includes/admin/class-sp-admin-taxonomies.php index 45070e2c..9d1e198a 100644 --- a/includes/admin/class-sp-admin-taxonomies.php +++ b/includes/admin/class-sp-admin-taxonomies.php @@ -76,7 +76,7 @@ class SP_Admin_Taxonomies { - + @@ -115,18 +115,18 @@ class SP_Admin_Taxonomies { ?>
-

+

- +
- +
- +

-

+

- + - + - + @@ -183,7 +183,7 @@ class SP_Admin_Taxonomies { public function add_position_fields() { ?>
- + @@ -220,7 +220,7 @@ class SP_Admin_Taxonomies { $sections = sp_get_term_sections( $t_id ); ?> - + @@ -249,7 +249,7 @@ class SP_Admin_Taxonomies { - + diff --git a/includes/admin/class-sp-admin-welcome.php b/includes/admin/class-sp-admin-welcome.php index 47037a56..a920b69d 100644 --- a/includes/admin/class-sp-admin-welcome.php +++ b/includes/admin/class-sp-admin-welcome.php @@ -107,9 +107,9 @@ class SP_Admin_Welcome { unset( $version[2] ); $display_version = implode( '.', $version ); ?> -

' ); ?>

+

' ) ); ?>

-
version ); ?>
+
version ) ); ?>
- + " class="button button-primary"> +

@@ -150,14 +150,14 @@ class SP_Admin_Welcome { echo 'nav-tab-active';} ?> " href=" 'sp-about' ), 'index.php' ) ) ); ?>"> - + - +
-

+

- Screenshot + Screenshot

Conditional Equations

-

Use the newly introduced conditional operators >, <, , , , and to calculate the relationship between variables, then insert that calculation into more complex equations. Visit the Configure page to edit variables and equations.

+

Use the newly introduced conditional operators >, <, , , , and to calculate the relationship between variables, then insert that calculation into more complex equations. Visit the Configure page to edit variables and equations.

- Screenshot + Screenshot

Event Specs

Measure and display additional details per event using the new Event Specs variables. They are customizable and can be useful for keeping track of information like player of the match, attendance, and venue weather.

- Screenshot + Screenshot

Next Team Column

-

Provide a quick overview of who each team is playing next using the new Next Team preset for league table columns. This will automatically display the next team's name or logo that links to the next match for each team in the table.

+

Provide a quick overview of who each team is playing next using the new Next Team preset for league table columns. This will automatically display the next team's name or logo that links to the next match for each team in the table.

@@ -234,25 +234,25 @@ class SP_Admin_Welcome {
- Results Matrix + Results Matrix

Results Matrix

Display matches between home and away team in a grid. Create or select an existing calendar and select the Matrix layout to convert the calendar to an interactive results matrix!

- Midseason Transfers + Midseason Transfers

Midseason Transfers

Keep track of players that switched teams during a season by adding one or more extra rows to their statistics table. Display the team and partial statistics before and after the transfer.

- Vertical Timelines + Vertical Timelines

Vertical Timelines

Display a match commentary style play-by-play timeline within events. Upgrade to SportsPress Pro to get access to Timelines and other pro features.

- + -

+


@@ -266,7 +266,7 @@ class SP_Admin_Welcome {

Player Assignments

-

Players will now be saved using a new data format that allows them to belong to multiple leagues, seasons, and teams and be accurately selected in player lists.

+

Players will now be saved using a new data format that allows them to belong to multiple leagues, seasons, and teams and be accurately selected in player lists.

Current Team Column

@@ -316,7 +316,7 @@ class SP_Admin_Welcome { ) ); ?> - "> + ">
(function($) { $(".wrap .page-title-action").first().after( - $(" 'sp_fixture_csv' ), 'admin.php' ) ) ); ?>\">") + $(" 'sp_fixture_csv' ), 'admin.php' ) ) ); ?>\">") ).after( - $(" 'sp_event_csv' ), 'admin.php' ) ) ); ?>\">") + $(" 'sp_event_csv' ), 'admin.php' ) ) ); ?>\">") ); })(jQuery); @@ -123,7 +123,7 @@ class SP_Admin {