| @@ -125,9 +125,9 @@ | ||
| 125 | 125 | $key && |
| 126 | 126 | array_key_exists( $key, $this->render_modes ) |
| 127 | 127 | ) { |
| 128 | 128 | $this->set_current( new $this->render_modes[ $key ]( $post_id ) ); |
| 129 | - } elseif ( $this->is_template_preview_mode( $template_id, $key, $nonce ) ) { | |
| 129 | + } else if ( $this->is_template_preview_mode( $template_id, $key, $nonce ) ) { | |
| 130 | 130 | $this->set_current( new $this->render_modes[ $key ]( $template_id ) ); |
| 131 | 131 | } else { |
| 132 | 132 | $this->set_current( new Render_Mode_Normal( $post_id ) ); |
| 133 | 133 | } |
| @@ -158,9 +158,9 @@ | ||
| 158 | 158 | /** |
| 159 | 159 | * Add actions base on the current render. |
| 160 | 160 | * |
| 161 | 161 | * @throws \Requests_Exception_HTTP_403 If the current render mode does not have the required permissions. |
| 162 | - * @throws \WpOrg\Requests\Exception\Http\Status403 If the current render mode does not have the required permissions. | |
| 162 | + * @throws Status403 If the current render mode does not have the required permissions. | |
| 163 | 163 | */ |
| 164 | 164 | private function add_current_actions() { |
| 165 | 165 | if ( ! $this->current->get_permissions_callback() ) { |
| 166 | 166 | // WP >= 6.2-alpha |