| @@ -19,13 +19,15 @@ | ||
| 19 | 19 | <span class="title"><?php echo esc_html(__( 'On Market', 'propertyhive' )); ?></span> |
| 20 | 20 | <span class="input-text-wrap"> |
| 21 | 21 | <select class="on_market" name="_on_market"> |
| 22 | 22 | <?php |
| 23 | + // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound -- Template-local variable in an admin view; PHPCS analyzes the view file standalone even though WordPress includes it inside a method/function scope. | |
| 23 | 24 | $options = array( |
| 24 | 25 | '' => __( '— No Change —', 'propertyhive' ), |
| 25 | 26 | 'yes' => __( 'Yes', 'propertyhive' ), |
| 26 | 27 | 'no' => __( 'No', 'propertyhive' ), |
| 27 | 28 | ); |
| 29 | + // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound -- Template-local variable in an admin view; PHPCS analyzes the view file standalone even though WordPress includes it inside a method/function scope. | |
| 28 | 30 | foreach ($options as $key => $value) { |
| 29 | 31 | echo '<option value="' . esc_attr( $key ) . '">' . esc_html($value) . '</option>'; |
| 30 | 32 | } |
| 31 | 33 | ?> |
| @@ -39,13 +41,15 @@ | ||
| 39 | 41 | <span class="title"><?php echo esc_html(__( 'Featured', 'propertyhive' )); ?></span> |
| 40 | 42 | <span class="input-text-wrap"> |
| 41 | 43 | <select class="featured" name="_featured"> |
| 42 | 44 | <?php |
| 45 | + // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound -- Template-local variable in an admin view; PHPCS analyzes the view file standalone even though WordPress includes it inside a method/function scope. | |
| 43 | 46 | $options = array( |
| 44 | 47 | '' => __( '— No Change —', 'propertyhive' ), |
| 45 | 48 | 'yes' => __( 'Yes', 'propertyhive' ), |
| 46 | 49 | 'no' => __( 'No', 'propertyhive' ), |
| 47 | 50 | ); |
| 51 | + // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound -- Template-local variable in an admin view; PHPCS analyzes the view file standalone even though WordPress includes it inside a method/function scope. | |
| 48 | 52 | foreach ($options as $key => $value) { |
| 49 | 53 | echo '<option value="' . esc_attr( $key ) . '">' . esc_html($value) . '</option>'; |
| 50 | 54 | } |
| 51 | 55 | ?> |
| @@ -60,24 +64,30 @@ | ||
| 60 | 64 | <span class="input-text-wrap"> |
| 61 | 65 | <select class="availability" name="_availability"> |
| 62 | 66 | <?php |
| 63 | 67 | |
| 68 | + // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound -- Template-local variable in an admin view; PHPCS analyzes the view file standalone even though WordPress includes it inside a method/function scope. | |
| 64 | 69 | $options = array( '' => __( '— No Change —', 'propertyhive' ) ); |
| 70 | + // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound -- Template-local variable in an admin view; PHPCS analyzes the view file standalone even though WordPress includes it inside a method/function scope. | |
| 65 | 71 | $args = array( |
| 66 | 72 | 'hide_empty' => false, |
| 67 | 73 | 'parent' => 0 |
| 68 | 74 | ); |
| 69 | - $terms = get_terms( 'availability', $args ); | |
| 75 | + // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound -- Template-local variable in an admin view; PHPCS analyzes the view file standalone even though WordPress includes it inside a method/function scope. | |
| 76 | + $terms = get_terms( array_merge( wp_parse_args( $args ), array( 'taxonomy' => 'availability' ) ) ); | |
| 70 | 77 | |
| 78 | + // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound -- Template-local variable in an admin view; PHPCS analyzes the view file standalone even though WordPress includes it inside a method/function scope. | |
| 71 | 79 | $selected_value = ''; |
| 72 | 80 | if ( !empty( $terms ) && !is_wp_error( $terms ) ) |
| 73 | 81 | { |
| 74 | 82 | foreach ($terms as $term) |
| 75 | 83 | { |
| 84 | + // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound -- Template-local variable in an admin view; PHPCS analyzes the view file standalone even though WordPress includes it inside a method/function scope. | |
| 76 | 85 | $options[$term->term_id] = $term->name; |
| 77 | 86 | } |
| 78 | 87 | } |
| 79 | 88 | |
| 89 | + // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound -- Template-local variable in an admin view; PHPCS analyzes the view file standalone even though WordPress includes it inside a method/function scope. | |
| 80 | 90 | foreach ($options as $key => $value) { |
| 81 | 91 | echo '<option value="' . esc_attr( $key ) . '">' . esc_html($value) . '</option>'; |
| 82 | 92 | } |
| 83 | 93 | ?> |
| @@ -90,12 +100,14 @@ | ||
| 90 | 100 | <label class="alignleft"> |
| 91 | 101 | <span class="title"><?php echo esc_html(__( 'Negotiator', 'propertyhive' )); ?></span> |
| 92 | 102 | <span class="input-text-wrap"> |
| 93 | 103 | <?php |
| 104 | + // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound -- Template-local variable in an admin view; PHPCS analyzes the view file standalone even though WordPress includes it inside a method/function scope. | |
| 94 | 105 | $args = array( |
| 95 | 106 | 'name' => '_negotiator_id', |
| 96 | 107 | 'id' => '_negotiator_id', |
| 97 | 108 | 'show_option_none' => '— No Change —', |
| 109 | + // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedHooknameFound -- Legacy Property Negotiator compatibility filter; existing role filters depend on this exact public hook name. | |
| 98 | 110 | 'role__not_in' => apply_filters( 'property_negotiator_exclude_roles', array('property_hive_contact', 'subscriber') ) |
| 99 | 111 | ); |
| 100 | 112 | wp_dropdown_users($args); |
| 101 | 113 | ?> |
| @@ -109,9 +121,11 @@ | ||
| 109 | 121 | <span class="input-text-wrap"> |
| 110 | 122 | <select class="office_id" name="_office_id"> |
| 111 | 123 | <?php |
| 112 | 124 | |
| 125 | + // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound -- Template-local variable in an admin view; PHPCS analyzes the view file standalone even though WordPress includes it inside a method/function scope. | |
| 113 | 126 | $options = array( '' => __( '— No Change —', 'propertyhive' ) ); |
| 127 | + // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound -- Template-local variable in an admin view; PHPCS analyzes the view file standalone even though WordPress includes it inside a method/function scope. | |
| 114 | 128 | $args = array( |
| 115 | 129 | 'post_type' => 'office', |
| 116 | 130 | 'nopaging' => true, |
| 117 | 131 | 'orderby' => 'title', |
| @@ -116,8 +130,9 @@ | ||
| 116 | 130 | 'nopaging' => true, |
| 117 | 131 | 'orderby' => 'title', |
| 118 | 132 | 'order' => 'ASC' |
| 119 | 133 | ); |
| 134 | + // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound -- Template-local variable in an admin view; PHPCS analyzes the view file standalone even though WordPress includes it inside a method/function scope. | |
| 120 | 135 | $office_query = new WP_Query($args); |
| 121 | 136 | |
| 122 | 137 | if ($office_query->have_posts()) |
| 123 | 138 | { |
| @@ -124,8 +139,9 @@ | ||
| 124 | 139 | while ($office_query->have_posts()) |
| 125 | 140 | { |
| 126 | 141 | $office_query->the_post(); |
| 127 | 142 | |
| 143 | + // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound -- Template-local variable in an admin view; PHPCS analyzes the view file standalone even though WordPress includes it inside a method/function scope. | |
| 128 | 144 | $options[get_the_ID()] = get_the_title(); |
| 129 | 145 | } |
| 130 | 146 | } |
| 131 | 147 | |
| @@ -130,8 +146,9 @@ | ||
| 130 | 146 | } |
| 131 | 147 | |
| 132 | 148 | $office_query->reset_postdata(); |
| 133 | 149 | |
| 150 | + // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound -- Template-local variable in an admin view; PHPCS analyzes the view file standalone even though WordPress includes it inside a method/function scope. | |
| 134 | 151 | foreach ($options as $key => $value) { |
| 135 | 152 | echo '<option value="' . esc_attr( $key ) . '">' . esc_html($value) . '</option>'; |
| 136 | 153 | } |
| 137 | 154 | ?> |