← All changes
|
includes/template-library/sources/local.php
+4
-0
4.2.0-dev2
→
4.3.0-beta3
View file →
| @@ -1266,8 +1266,10 @@ | ||
| 1266 | 1266 | * |
| 1267 | 1267 | * @param string $redirect_to The redirect URL. |
| 1268 | 1268 | * @param string $action The action being taken. |
| 1269 | 1269 | * @param array $post_ids The items to take the action on. |
| 1270 | + * | |
| 1271 | + * @return string The redirect URL, unchanged when the action is not handled here. | |
| 1270 | 1272 | */ |
| 1271 | 1273 | public function admin_export_multiple_templates( $redirect_to, $action, $post_ids ) { |
| 1272 | 1274 | if ( self::BULK_EXPORT_ACTION === $action ) { |
| 1273 | 1275 | $result = $this->export_multiple_templates( $post_ids ); |
| @@ -1275,8 +1277,10 @@ | ||
| 1275 | 1277 | // If you reach this line, the export failed |
| 1276 | 1278 | // PHPCS - Not user input. |
| 1277 | 1279 | wp_die( $result->get_error_message() ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped |
| 1278 | 1280 | } |
| 1281 | + | |
| 1282 | + return $redirect_to; | |
| 1279 | 1283 | } |
| 1280 | 1284 | |
| 1281 | 1285 | /** |
| 1282 | 1286 | * Print admin tabs. |