-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PHP 8.2: fix deprecated ${var} in strings #220
- Loading branch information
1 parent
fb508d4
commit 965cad4
Showing
1 changed file
with
5 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
define( 'OIK_TABLE_SHORTCODES_INCLUDED', true ); | ||
/* | ||
Copyright 2012-2018 Bobbing Wide (email : [email protected] ) | ||
Copyright 2012-2018, 2023 Bobbing Wide (email : [email protected] ) | ||
This program is free software; you can redistribute it and/or modify | ||
it under the terms of the GNU General Public License version 2, | ||
|
@@ -62,8 +62,8 @@ function bw_default_title_arr( $field_arr ) { | |
* Determine the columns for the table | ||
* | ||
* Finds the field names of the columns for the table, determines the table title for each field and creates a table heading | ||
* @uses "oik_table_fields_${post_type} - filter to determine fields to display in the table | ||
* @uses "oik_table_titles_${post_type} - filter to determine titles to display in the table | ||
* @uses "oik_table_fields_{$post_type} - filter to determine fields to display in the table | ||
* @uses "oik_table_titles_{$post_type} - filter to determine titles to display in the table | ||
* | ||
* Default fields, if not set are title and description (excerpt) | ||
* | ||
|
@@ -83,15 +83,15 @@ function bw_query_table_columns( $atts=null, $post_type=null ) { | |
$field_arr = explode( ",", $fields ); | ||
$field_arr = bw_assoc( $field_arr ); | ||
} else { | ||
$field_arr = apply_filters( "oik_table_fields_${post_type}", $field_arr, $post_type ); | ||
$field_arr = apply_filters( "oik_table_fields_{$post_type}", $field_arr, $post_type ); | ||
if ( empty( $field_arr ) ) { | ||
$field_arr['title'] = 'title'; | ||
$field_arr['excerpt'] = 'excerpt'; | ||
} | ||
} | ||
bw_trace2( $field_arr, "field_arr", false ); | ||
$title_arr = bw_default_title_arr( $field_arr ); | ||
$title_arr = apply_filters( "oik_table_titles_${post_type}", $title_arr, $post_type, $field_arr ); | ||
$title_arr = apply_filters( "oik_table_titles_{$post_type}", $title_arr, $post_type, $field_arr ); | ||
|
||
bw_table_header( $title_arr ); | ||
$excerpts = in_array( "excerpt", $field_arr); | ||
|