Skip to content

Commit 3d3b248

Browse files
committed
Fix: Fix a syntax error
``` Fatal error: Array and string offset access syntax with curly braces is no longer supported in Standard input code on line 124 Errors parsing Standard input code ```
1 parent b1143a7 commit 3d3b248

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

example/taxonomy_field/APF_TaxonomyField.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ public function do_APF_TaxonomyField() { // do_{instantiated class name}
121121
*/
122122
public function replyToSortCustomColumn( $aTerms, $aTaxonomies, $aArgs ) {
123123

124-
if ( 'edit-tags.php' == $GLOBALS['pagenow'] && isset( $_GET{'orderby'} ) && 'custom' == $_GET{'orderby'} ) {
124+
if ( 'edit-tags.php' == $GLOBALS['pagenow'] && isset( $_GET[ 'orderby' ] ) && 'custom' == $_GET[ 'orderby' ] ) {
125125
usort( $aTerms, array( $this, '_replyToSortByCustomOptionValue' ) );
126126
}
127127
return $aTerms;

0 commit comments

Comments
 (0)