| @@ -100,34 +100,8 @@ | ||
| 100 | 100 | |
| 101 | 101 | } |
| 102 | 102 | |
| 103 | 103 | /** |
| 104 | - * Whether the Term is set to use the Plugin's Default Form Setting. | |
| 105 | - * | |
| 106 | - * @since 2.6.6 | |
| 107 | - * | |
| 108 | - * @return bool | |
| 109 | - */ | |
| 110 | - public function uses_default_form() { | |
| 111 | - | |
| 112 | - return ( $this->settings['form'] === -1 ); | |
| 113 | - | |
| 114 | - } | |
| 115 | - | |
| 116 | - /** | |
| 117 | - * Whether the Post's Form setting is set to 'None' | |
| 118 | - * | |
| 119 | - * @since 2.6.6 | |
| 120 | - * | |
| 121 | - * @return bool | |
| 122 | - */ | |
| 123 | - public function uses_no_form() { | |
| 124 | - | |
| 125 | - return ( $this->settings['form'] === 0 ); | |
| 126 | - | |
| 127 | - } | |
| 128 | - | |
| 129 | - /** | |
| 130 | 104 | * Returns the form position setting for the Term |
| 131 | 105 | * on the Term archive. |
| 132 | 106 | * |
| 133 | 107 | * @since 2.4.9.1 |
| @@ -163,14 +137,9 @@ | ||
| 163 | 137 | * @return bool Term Meta was updated |
| 164 | 138 | */ |
| 165 | 139 | public function save( $meta ) { |
| 166 | 140 | |
| 167 | - $result = update_term_meta( $this->term_id, self::TERM_META_KEY, array_merge( $this->get(), $meta ) ); | |
| 168 | - | |
| 169 | - // Reload meta in class, to reflect changes. | |
| 170 | - $this->settings = get_term_meta( $this->term_id, self::TERM_META_KEY, true ); | |
| 171 | - | |
| 172 | - return $result; | |
| 141 | + return update_term_meta( $this->term_id, self::TERM_META_KEY, $meta ); | |
| 173 | 142 | |
| 174 | 143 | } |
| 175 | 144 | |
| 176 | 145 | /** |