-
Notifications
You must be signed in to change notification settings - Fork 46
/
changelog
941 lines (748 loc) · 30.6 KB
/
changelog
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
# Changelog
## [3.31.12]- 2024-1-29
### [Added]
- Added CORS file to FishPig WP theme to ensure CORS headers are set for Magento URL
when in external integration mode.
## [3.31.11] - 2024-10-25
### [Changed]
- Changed HTTP POST requests to submit data as an array rather than query string.
## [3.31.10] - 2024-10-20
### [Fixed]
- Added support for taxonomy prefix of "." which essentially
removes the prefix.
## [3.31.9] - 2024-06-30
### [Fixed]
- Fixed error introduced in 3.31.8 with Menu model not having updated contstructor.
## [3.31.8] - 2024-06-28
### [Fixed]
- Added automatic post type filter to post collection generated by term model.
This forces only posts that are setup to use the taxonomy to be included.
## [3.31.7] - 2024-06-07
### [Changed]
- Changed WP theme to include more filters for HTML injection.
## [3.31.4] - 2024-06-05
### [Removed]
- Removed code from WP theme file to remove canonical redirects. This has been
moved to the Shortcodes modules, which can handle this more appropriately.
## [3.31.3] - 2024-05-10
### [Fixed]
- Fixed issue where non-public post types were being included in the XML sitemap.
- Fixed bin/magento fishpig:wordpress:test core.test issue that tried to deploy using
local integration when in external mode.
- Fixed issue with theme deployment where deployment would occur even when hashes
matched if triggered via tests.
## [3.31.2] - 2024-04-30
### [Changed]
- Changed product list block to allow data to be set against actual product list
block. This is useful with the product shortcode [product custom_text="Hello!"]
You can then call $block->getCustomText() in product list template and access
this data.
## [3.31.1] - 2024-04-23
### [Fixed]
- Fixed issue where URL containing only numbers would load homepage.
## [3.31.0] - 2024-04-22
### [Added]
- Added a menu repository and MenuRepository::getByLocation
### [Changed]
- Changed canonical to include an alias to stop duplicates being added
### [Fixed]
- Incorrectly nested closing div tag in post/view.phtml
## [3.30.1] - 2024-04-02
### [Fixed]
- Fixed return type for getAliases in console command to be compatible with
Magento 2.4.7-beta3
## [3.30.0] - 2024-03-29
### [Added]
- Added locks into API data requests. This should stop multiple requests sending
the same API requests to WordPress.
## [3.29.10] - 2024-03-21
### [Changed]
- Updated links in README.md to point to fishpig.com
## [3.29.8] - 2024-03-20
### [Fixed]
- Fixed order of breadcrumbs for hierarchical term when viewing 3+ levels deep.
## [3.29.7] - 2024-02-09
### [Fixed]
- Fixed an issue with directive processor detected false positives, which raises
an error.
## [3.29.6] - 2024-02-06
### [Changed]
- Changed directives processing so that it is not an asset provider. It runs as the
last asset provider in the queue.
## [3.29.5] - 2024-02-01
### [Changed]
- Changed the theme hashing to remove a log file that was created in WordPress (theme-update.log)
## [3.29.4] - 2024-01-30
### [Fixed]
- Fixed a trailing slash issue with custom post type archive pages.
## [3.29.3] - 2024-01-27
### [Changed]
- Updated WP theme file to stop WordPress auto editing the .htaccess file.
## [3.29.2] - 2024-01-16
### [Changed]
- Modified post sitemap item provider to call isPublic before adding items.
## [3.29.1] - 2024-01-11
### [Changed]
- Changed option data source to use option repository for App classes. This
allows these to use autoloaded values, rather than reloading values we already
have.
## [3.29.0] - 2024-01-08
### [Added]
- Added an autoload feature to the option repository. This gets all autoloaded
option values in a single query and caches, rather than multiple individual
queries.
## [3.28.35] - 2023-01-41
### [Fixed]
- Fixed deprecated string functionality (passing null to trim) in local path resolver.
## [3.28.34] - 2023-10-26
### [Changed]
- Moved CSP whitelist to Admin context.
## [3.28.33] - 2023-09-25
### [Fixed]
- Renamed CleanUp class to fix a name casing issue. New class is now AssetCleaner
## [3.28.32] - 2023-09-22
### [Fixed]
- Added an AssetProvider to cleanup shortcodes added to the content from the
Related Products add-on module. This can happen after uninstalling the RP
module, the shortcodes can remain in the pre-rendered content.
## [3.28.31] - 2023-09-11
## [Fixed]
- Reverted 3.28.30 and applied a better fix. The issue was caused because the
OptionRepository model had a cache that was not scoped by store ID so cache
collisions could occur.
## [3.28.30] - 2023-09-06
### [Changed]
- Changed cache key for integration data. This fixes issue with data collision
across stores.
## [3.28.29] - 2023-08-15
### [Changed]
- Changed Magento URL provider to return URL relative protocol URLs as secure.
### [Fixed]
- Fixed issue in ModelRepository with $object being null.
## [3.28.28] - 2023-07-27
### [Changed]
- Changed Invalid status exceptions to include redirect location if available.
## [3.28.27] - 2023-07-24
### [Changed]
- Refactored PostRouter to allow for PSW to add plugin efficiently.
## [3.28.26] - 2023-07-14
### [Changed]
- Stopped redirecting to canonical URL if the request is a preview URL.
## [3.28.25] - 2023-07-03
### [Changed]
- Changed tags in WP theme to reflect installed add-on modules and versions.
## [3.28.24] - 2023-06-23
### [Fixed]
- Fixed theme issue in WP where post title conversion to URL key was not
sanitized.
## [3.28.23] - 2023-06-21
### [Fixed]
- CORS issue with Popular Posts plugin.
## [3.28.22] - 2023-06-20
### [Fixed]
- Fixed issue with custom base URL when setting via store context.
## [3.28.20] - 2023-06-14
### [Changed]
- Improved theme deployment process when using external integration or when
it fails using local integration. WP now alerts that a theme update is available
and provides a link to download the latest version.
## [3.28.19] - 2023-06-12
### [Changed]
- Changed WP theme to remove the title sanitization for the query. The URL is used
as its found. This fixes an issue where adding spaces into the URL still loaded
the post, even though the URL was wrong.
## [3.28.18] - 2023-06-09
### [Fixed]
- Fixed trailing comma in CSP plugin.
## [3.28.17] - 2023-06-08
### [Changed]
- Added caching to CSP policy collection.
## [3.28.16] - 2023-06-08
### [Changed]
- Improved error messages when theme deployment fails. This now provides steps for
manual installation and updates of the WP theme. It also provides a URL
to download the theme ZIP, so you no longer have to run the CLI command
to generate it.
## [3.28.15] - 2023-06-08
### [Changed]
- Changed AssetProvider to filter list of asset providers before running. This
allows us to skip calling the integration tests on some requests.
## [3.28.14] - 2023-05-31
### [Changed]
- Admin layout XML to include config block where required.
## [3.28.12] - 2023-05-26
### [Changed]
- Theme deployment optimisation for local mode.
## [3.28.11] - 2023-05-25
### [Changed]
- Removed any HTTP requests from local theme deploy.
## [3.28.9] - 2023-05-25
### [Changed]
- Modified local theme installation to remove rename and just remove instead.
## [3.28.8] - 2023-05-23
### [Changed]
- Changed theme installation to use deployment service. This can now install and
upgrade theme for local and external installations.
bin/magento fishpig:wordpress:theme --deploy
## [3.28.7] - 2023-05-19
### [Changed]
- Elevated theme update exception to a fatal integration exception.
- Added --install-path to theme update exception message when using local mode.
## [3.28.5] - 2023-05-11
### [Fixed]
- PHP 8.1 string/ltrim issue.
## [3.28.4] - 2023-05-10
### [Changed]
- Changed Taxonomy/Term URL generation to include front, even if no slug is set.
## [3.28.3] - 2023-04-26
### [Changed]
- Added (array $blockData = []) parameter to FishPig\WordPress\Block\Post\ListPost::renderPost
## [3.28.2] - 2023-04-19
### [Changed]
- Changed cache type to always be enabled. If disabled, it will auto enable. This
ensures all caching is available for HTTP data, which is required for even
performance.
## [3.28.1] - 2023-04-18
### [Changed]
- Changed console command return types to direct int's, rather than constants
which only exist on 2.4.6 and above.
## [3.28.0] - 2023-03-22
### [Added]
- Added PHP 8.2 support.
## [3.27.14] - 2023-03-08
### [Fixed]
- Featured image URLS when using a custom upload path.
## [3.27.12] - 2023-03-07
### [Changed]
- Made post_excerpt display in direct WP requests optional, based on a filter
- Modified save_post in WP to flush whole WP cache when new post added or
post is moved to the trash.
## [3.27.11]
### [Fixed]
- Fixed another getSize issue on Post collection when no post type filters set.
Default post types (post + page) are now applied.
### [Changed]
- Changed exception message when term fails taxonomy check to fix spelling error.
## [3.27.10]
### [Changed]
- Wrapped swatch injection in product list in a try catch to stop errors
when in GraphQL
## [3.27.9]
### [Fixed]
- Injected in missing Logger class into catalog product list block.
## [3.27.8]
### [Changed]
- minor grammatical and spelling mistakes in comments.
- Post Collection getSize method to account for post_type filters.
## [3.27.7]
### [Fixed]
- Debug code removed.
## [3.27.5]
### [Fixed]
- String null type error in AdditionalCss
### [Changed]
- Forced Serializer in API RequestManager class to use JSON serializer.
## [3.27.4]
### [Fixed]
- Fixed issue when using Remote Storage.
## [3.27.3]
### [Fixed]
- Search term returning NULL causing trim/string error.
## [3.27.2] - 2022-12-21
### [Changed]
- Changed response to entity not existing in controller. Rather than throw
exception, the noRoute (404) page is now shown and the error logged.
## [3.27.1] - 2022-12-12
### [Fixed]
- Fixed an issue caused by removing the data from integration data retriever
when no add-on modules that specifically require it are installed.
## [3.27.0] - 2022-12-12
### [Added]
- Added flag to integration data retriever. This stops the data retrieval HTTP
request from being fired unless an add-on module is installed that specifically
requires this. Currently only Multisite and Post Types require this.
## [3.26.3] - 2022-12-08
### [Changed]
- Changed CURL HTTP request for RemoteActions from WordPress to include a
user agent (currently FishPig/M2WP).
## [3.26.2] - 2022-12-07
### [Fixed]
- SQL error when search term produced zero results.
- SQL error when using Multisite and term_order field.
## [3.26.1] - 2022-11-25
### [Changed]
- Changed WordPress theme index.php to include post excerpt data.
## [3.26.0] - 2022-11-18
### [Added]
- Added curlopt_resolve option to Admin config. This allows you to specify a
different IP for the WP domain to resolve to. This can be used to bypass
Cloudflare to speed up API requests or it can be used to set a dev IP, which
is useful if you cannot edit the hosts file on the Magento server. Value
should be in the format: HOST:PORT:IP so an example would be:
www.yoursite.com:443:127.0.0.1
Multiple values can be entered by separating with a comma:
www.yoursite.com:443:127.0.0.1,yoursite.com:443:127.0.0.1
## [3.25.0] - 2022-11-08
### [Added]
- Search now uses WP API to get results. This allows for WP search plugins
to be used to affect the results. This can be disabled via the code.
### [Changed]
- Changed HTTP requests to include Connection: close
## [3.24.5] - 2022-11-03
### [Fixed]
- Another Term issue when using a hyphen in taxonomy type.
- Modified exception output in blocks to include trace. Exception output is
only enabled in developer mode. For production mode, see var/log/wp/error.log.
## [3.24.4] - 2022-11-02
### [Changed]
- Changed object that generates search form URL to Magento URL builder. This
fixes search 404s.
## [3.24.3] - 2022-11-01
### [Fixed]
- Using terms with a hyphen (-) in the post collection addTermFilter caused an
SQL error as the everything after the hyphen wasn't used as an alias.
## [3.24.2] - 2022-10-26
### [Changed]
- Changed form action URL to fix redirect not working issue.
## [3.24.1] - 2022-10-19
### [Added]
- Added time stamp into REST URLs
### [Changed]
- Changed WP theme files to accept Auth keys via URL.
## [3.23.3] - 2022-10-18
### [Changed]
- Changed outdated WP theme from exception to warning.
## [3.23.2] - 2022-10-15
### [Changed]
- Improved debug command (bin/magento fishpig:wordpress:debug)
- Improved error log display in blocks and Router when integration not setup right
## [3.23.0] - 2022-10-15
### [Changed]
- Renamed Test folder to Tests so that classes are added to the optimised
Composer autoloader.
## [3.22.0] - 2022-10-13
### [Added]
- Added integration tests into AbstractBlock. This fixes issue where blocks
are included on stores that have the module disabled. It checks this before
running and fixes ObjectResolver issues.
## [3.21.1] - 2022-10-07
### [Changed]
- Added fishpig wrapper tags to wp_footer
## [3.21.0] - 2022-10-06
### [Added]
- Added terms to XML sitemap.
### [Fixed]
- Store base URL options detection fixed to include store ID when checking.
## [3.20.1] - 2022-09-28
### [Changed]
- Changed SSL/TLS config options for DB when using External integration mode.
These options are now configurable via the config, rather than auto set.
## [3.20.0] - 2022-09-23
### [Added]
- Added RepositoryPool object to gather all repositories into a single place.
### [Changed]
- Added show_in_rest => true to post and page post types.
- Changed Repository get signature to match for both repository types
### [Fixed]
- Fixed bug with theme file collection when using S3 remote storage.
## [3.19.2] - 2022-09-14
### [Removed]
- From security test. This has been moved to its own module.
## [3.19.1] - 2022-09-13
### [Added]
- Added new test to check for infected files:
bin/magento fishpig:wordpress:test core.security
## [3.18.14] - 2022-09-07
### [Changed]
- Stopped redirecting URLs for assets to include a trailing slash (if configured this way).
- Use original case when forwarding a URL to WordPress siteurl. This fixes
issue for redirecting to images with uppercase characters in the filename.
## [3.18.13] - 2022-09-07
### [Changed]
- Added an ltrim($s, '/') to the permalink structure for post types.
This should allow for a permalink structure of / which removes the base
from custom post type URLs.
## [3.18.12] - 2022-09-04
### [Fixed]
- Removed debugging code from sitemap generation.
## [3.18.11] - 2022-09-02
### [Changed]
- Modified URL generation for XML sitemap to now include the homepage URL
- Includes a better URL absolute->relative conversion system.
## [3.18.10] - 2022-08-31
### [Changed]
- Changed error message for protocol mismatch.
## [3.18.9] - 2022-08-26
### [Fixed]
- Stopped added trailing slashes to URLs ending in .html regardless of whether
permalink structure has a trailing slash.
## [3.18.7] - 2022-08-05
### [Fixed]
- Added correct post type to remote action page cache clean. This fixes a bug that
only allowed post_type=post to be auto flushed from the FPC.
### [Changed]
- Improved unserialization of WP options and added logging, rather than throwing
exception.
## [3.18.5] - 2022-07-31
### [Changed]
- Changed Admin CSS to include Permalink Manager icon.
## [3.18.4] - 2022-07-26
### [Fixed]
- PHP TypeError when searching for numerical values (eg. 2022).
## [3.18.3] - 2022-07-25
### [Changed]
- Converted exception types in ResourceConnection to IntegrationFatalExeption.
## [3.18.2] - 2022-07-25
### [Changed]
- Added better protection when configuration is not valid. Only direct routes
(eg. blog URLs) will throw an integration exception. Things such as CSP collection
will squash the error so the page continues to load.
## [3.18.1] - 2022-07-22
### [Changed]
- Changed the hash of the file path and name for each theme file to a relative
path rather than an absolute path. This stops the theme hash being affected
by the install location of Magento.
## [3.18.0] - 2022-07-22
### [Changed]
- Changed repository's to declare the object factory in the constructor. This
allows the code compiler to detect the factory and auto generate it during
compilation. This stops permission issues when using the Magento cloud.
- Changed the WP theme builder to save the theme ZIP in var/fishpig/wptheme-builds
This stops it being pushed to S3 when using the remote storage adapter.
## [3.17.1] - 2022-07-20
### [Changed]
- HTTP logging can now be configured via the config to be either Enabled (log everything), Disabled (log nothing), Reduce (log HTTP errors).
## [3.17.0] - 2022-07-19
### [Changed]
- Fixed some auto load errors
- Merged legacy-src into code base in PSR4 positions and added deprecated tags
- Renamed .php files in wptheme to *.php.sample to avoid autoload and compilation issues.
## [3.16.0] - 2022-07-18
### [Added]
- Added MetaDataProvider functionality to collections. This includes addMetaFieldToSelect, addMetaFieldToFilter, addMetaFieldToSort
## [3.15.1] - 2022-07-15
### [Removed]
- Removed legacy-src files.
## [3.14.3] - 2022-06-09
### [Changed]
- Added Integration tests to AssetProvider. This ensures tests have been executed for non-WP pages.
## [3.14.2] - 2022-06-09
### [Changed]
- Added name and email hidden fields to comment form when customer logged in.
## [3.14.1] - 2022-06-08
## [Fixed]
- New issue that caused 404 when post_type=page
## [3.14.0] - 2022-06-08
### [Added]
- Redirect functionality to correct missing - or extra - trailing slash.
## [3.12.8] - 2022-06-08
- Fixed issue with hierarchical post types view page 404.
## [3.12.7] - 2022-06-03
- PHP strict types fix.
## [3.12.6] - 2022-05-31
### [Changed]
- Fixed PHP 8.1 type errors.
## [3.12.5] - 2022-05-30
### [Fixed]
- PHP 8.1 type error in Block\Sidebar\Widget\Categories
## [3.12.4] - 2022-05-27
### [Removed]
- Removed rogue layout XML instruction in full width template to remove porto header.
## [3.12.3] - 2022-05-27
### [Fixed]
- Fixed fatal error undefined method 'extractPhpErrorMessage' when WordPress API error occurs.
## [3.12.2] - 2022-05-27
### [Changed]
- Changed database default charset from utf8 to utfmb4 when using external integration mode. This can still be changed in
the module config in the Magento admin.
## [3.12.1] - 2022-05-24
### [Changed]
- Added a call to is_file around the mu-plugin includes. This stop errors when removing an add-on but the MU ref remains.
## [3.12.0] - 2022-05-24
### [Added]
- Added mu-plugins functionality to WordPress theme. This allows add-on modules to add to a mu-plugin (mu=must use)
This allows functionality to be added to WP before the theme inits. Currently this is used by WPML.
## [3.11.1] - 2022-05-21
### [Fixed]
- Fixed SSL support for DB connections.
## [3.11.0] - 2022-05-20
### [Added]
- Added support for SSL connections to the WordPress DB.
## [3.10.1] - 2022-05-7
### [Fixed]
- Sticky posts will now display when custom posts page set. Also $post->isSticky() is fixed and returns correct value.
## [3.10.0] - 2022-05-16
### [Added]
- App\HTTP\PhpErrorExtractor to extract PHP errors from WordPress HTTP requests.
### [Fixed]
- Block\Sidebar issue that stopped the Custom Sidebar plugin from working.
## [3.9.7] - 2022-04-28
### [Changed]
- Uninstalled modules are now greyed out in the config, to make it clear which add-on modules are installed and which
are not.
## [3.9.6] - 2022-04-26
### [Changed]
- Error suppression when webp image used in resizer. Error (unsupported image format) is logged and original image is used.
- Added exclusions to class map in composer.json. This is for the WP theme files and some legacy SRC files (that have their own autoloader)
## [3.9.5] - 2022-04-20
### [Changed]
- Changed parent of Model\Term to AbstractMetaModel.
## [3.9.4] - 2022-04-19
### [Added]
- New router to redirect posts that have %category% in the permalink structure but use the wrong category.
## [3.9.3] - 2022-04-13
### [Changed]
- Removed addRecord from \FishPig\WordPress\App\Logger and added this functionality to a new \FishPig\WordPress\App\Logger\BacktraceProcessor
object. This supports Magento 2.3.2.* and 2.4.4 as it no longer extends the addRecord method.
## [3.9.2] - 2022-04-12
### [Fixed]
- Magento 2.4.4 fix for \FishPig\WordPress\App\Logger
## [3.9.1] - 2022-04-1
### [Fixed]
- Missing TaxonomyRepository in PostType model.
## [3.9.0] - 2022-04-09
### [Added]
- Added "fishpig/wordpress/the_content/after" filer to WordPress theme's index.php
## [3.8.0] - 2022-03-29
### [Added]
- Remote actions system. This is a unified system that allows authenticated WP requests to perform actions like
cleaning the cache for a specific post. Add-ons (eg. ACF) can use this to cache and clear data.
### [Changed]
- Updated FishPig WP theme files
### [Removed]
- wordpress/post/invalidate action. This has been replaced with RemoteActions system.
## [3.7.14] - 2022-03-22
### [Changed]
- Changed parent block for FishPig\WordPress\Block\Catalog\Product\ListProduct to \Magento\Catalog\Block\Product\AbstractProduct
## [3.7.12] - 2022-03-18
### [Fixed]
- Static strings in permalink structure that point to the posts page (eg. /blog/%postname%) now add the post page to
the breadcrumbs structure (eg. Home > Blog > Post)
## [3.7.11] - 2022-03-14
### [Fixed]
- Undefined index issue in preview.php (WP theme file).
- HTML tags sneaking into meta tags
## [3.7.9] - 2022-03-08
### [Fixed]
- Added \FishPig\WordPress\Block\PostType\View::getDescription(). This adds the WordPress tag line on the blog posts
page.
- Fixed Elementor layout files for canvas and full width.
## [3.7.8] - 2022-03-02
### [Fixed]
- Fixed missing $location variable.
## [3.7.7] - 2022-03-01
### [Fixed]
- Removed index.php from Magento URL generation.
## [3.7.6] - 2022-02-25
### [Fixed]
- Redirect URL displayed in var/log/wp/http.log
- Canvas template (Elementor) layout file updated to remove page title and copyright.
## [3.7.5] - 2022-02-22
### [Changed]
- Changed theme update integration error message to include expected theme hash and current theme hash. This is useful
for debugging.
## [3.7.4] - 2022-02-09
### [Changed]
- Added cachable=false block to post preview pages to fully stop them from being cached.
## [3.7.3] - 2022-02-09
### [Fixed]
- Cache busting parameter for preview URLs is now present so previews are not cached.
## [3.7.1] - 2022-02-08
### [Fixed]
- Removed trailing comma in method calling (not allowed in PHP 7.2)
## [3.7.0] - 2022-02-04
### [Added]
- Class for Model\User\MetaDataProvider. Previously this was virtual type.
## [3.6.6] - 2022-02-04
### [Fixed]
- WP URL redirect protection now only fires when auth token is present.
- Fix for getRealHomepageUrl when changing store.
## [3.6.5] - 2022-02-03
### [Changed]
- Improved exception messages when 301 or 302 redirects occur so that redirect URL is included. This should help with
debugging.
## [3.6.4] - 2022-02-02
### [Added]
- Added getEntity to post list wrapper blocks for backwards compatibility.
- Added Homepage/View block to legacy class list.
## [3.6.3] - 2022-01-28
### [Fixed]
- Translation function return type cast to string when passed to stripslashes in Model/Post.
- Modified tag cloud CSS to item inline-block. This fixes tag cloud links going out of their container.
## [3.6.2] - 2022-01-23
### [Fixed]
- Post content not getting pre-rendered value when not using PSW add-on.
## [3.6.1] - 2022-01-20
### [Fixed]
- WP-JSON redirect correct rest URL.
## [3.6.0] - 2022-01-19
### [Added]
- Block for displaying posts that can be used by add-ons (PSW + Related Products).
## [3.5.4] - 2022-01-18
### [Changed]
- Added exception handling for missing source images when resizing in local mode.
- Added call to hello API method before getting integration data. This checks API is up and running without HTTP auth.
## [3.5.3] - 2022-01-17
### [Added]
- Added user agent to API requests.
## [3.5.2] - 2022-01-17
### [Added]
- List option to test command to list all installed tests: bin/magento fishpig:wordpress:test --list
## [3.5.1] - 2021-01-14
### [Fixed]
- Callback not passed to shortcode renderer so was not executed when shortcode provided.
## [3.5.0] - 2021-01-13
### [Added]
- Added bin/magento fishpig:wordpress:test command.
## [3.4.4] - 2022-01-12
### [Fixed]
- WP Theme issue that stopped redirects working in WordPress Admin.
## [3.4.3] - 2022-01-10
### [Fixed]
- Changed post type check in Homepage controller from 'posts' to 'post'
- Fixed Exception 'wrong parameters' error when ApiTest fails.
## [3.4.2] - 2022-01-04
### [Fixed]
- NoSuchEntityException caught when viewing invalid author URL.
- Auto theme installation no longer creates a copy of the theme package in the WordPress themes dir (local mode).
- Auto theme installation doesn't delete the old theme if it contains a local.php file. This should stop any old custom
code from being deleted.
- App\Theme::isInstalled now checks current theme and not just the remote theme hash. This stops the theme being
enabled and then later disabled and still being reported as being enabled.
- Invalid user URLs now go to noRoute action rather than an error message.
### [Changed]
- WordPress theme now flushes rewrites when updating the theme hash.
## [3.4.1] - 2022-01-04
### [Added]
- MetaDataProvider for Post. This was a virtual class but is now an actual class. This allows for ACF to add plugins.
## [3.3.0] - 2022-01-04
### [Added]
- Added option to POST using REST API.
### [Changed]
- Improved RequestManager error handling
## [3.2.2] - 2022-01-03
### [Changed]
- Error messages for URLs when using Root.
### [Fixed]
- Fixed Option::set when option exists but has a null value.
- Allow br and a tags in comment content.
## [3.2.1] - 2022-01-02
### [Fixed]
- Resizable images when using Multisite in local mode. The correct path for the image is now used.
## [3.2.0] - 2022-01-02
### [Added]
- Added hello WP API method to help with debugging.
- Added wp_redirect protection to WP theme.
- Caching for theme hash generation (file collection).
- Added fishpig:wordpress:set-option console command.
### [Changed]
- Moved logs from var/log/wordpress.log to var/log/wp/error.log. Also added http.log to same location.
- Updated search widget template.
### [Fixed]
- Automatic WP theme update registration when in local mode.
## [3.1.1] - 2021-12-30
### [Changed]
- Removed wrapping HTML tag from wp_footer call in WordPress theme.
## [3.1.0] - 2021-12-30
### [Changed]
- Changed HTTP status exceptions if status !== 200 or 404
- Added UrlModifiers to RequestManager classes
## [3.0.34] - 2021-12-25
### [Fixed]
- Compilation error: "Class FishPig\WordPress\App\HTTP\Throwable does not exist"
## [3.0.33] - 2021-12-24
### [Added]
- Checks for HTTP auth and displays a message indicating HTTP auth failure. In a future version you will be able to
specify HTTP auth details in the Admin. For now, just ensure Magento and WP use the same HTTP auth details and
these will be shared with the WP API automatically.
## [3.0.32] - 2021-12-23
### [Changed]
- Changed \Magento\Framework\Filesystem\DriverInterface to \Magento\Framework\Filesystem and get individual directories
from there.
## [3.0.30] - 2021-12-22
### [Changed]
- Code formatting clean up.
## [3.0.29] - 2021-12-21
### [Fixed]
- ResourceConnection checks getConnection() before calling isConnection.
## [3.0.28] - 2021-12-21
### [Fixed]
- Issue in includes/previews.php in the WP theme when preview_id wasn't passed in the URL
## [3.0.27] - 2021-12-21
### [Fixed]
- Module can now be disabled properly on a per store basis.
## [3.0.26] - 2021-12-21
### [Added]
- Better exception messages when the API connection fails.
## [3.0.23] - 2021-12-20
### [Added]
- Added API check to integration tests.
## [3.0.22] - 2021-12-20
### [Fixed]
- Fixed 'Undefined variable: redirectUrl in Plugin/Magento/Store/Block/SwitcherPlugin.php' notice.
## [3.0.21] - 2021-12-20
### [Added]
- API request logger now include current URL for each log. This will help with debugging.
## [3.0.19] - 2021-12-20
### [Changed]
- PluginManager data source no longer includes isEnabled. This has been moved to the PluginManager model.
## [3.0.18] - 2021-12-18
### [Fixed]
- Remote address missing when accessing via the CLI caused a type error.
## [3.0.16] - 2021-12-18
### [Fixed]
- Case issues with some class names.
### [Changed]
- Return type of OptionRepository::get from false to null when option doesn't exist.
### [Added]
- IP address to request log to help with debugging.
## [3.0.15] - 2021-12-17
### [Changed]
- Changed post password system to cookie based system rather than session to match WP. This also now works with the FPC.
## [3.0.14] - 2021-12-17
### [Changed]
- Cleaned up code.
### [Added]
- Ability to auto switch taxonomy when displaying categories on post view. This will select a different taxonomy if
its a post type that doesn't support the category taxonomy.
### [Fixed]
- Compiler error for PostPassword.
## [3.0.12] - 2021-12-17
### [Changed]
- Improved CSS for post grids. Removed negative margins.
## [3.0.11] - 2021-12-17
### [Fixed]
- Fixed HTTP HEAD request bug when using CloudFlare. This broke the UrlValidation model in PSW.
- The usermeta was adding the blog_id as a table prefix, which is invalid for this table.
- Post password implementation was broke due to cookies no longer being shared so this has been updated for new the system.
## [3.0.10] - 2021-12-16
### [Added]
- Added cli_commands.php to the composer.json autoload section. This is the mechanism for loading the legacy autoloader
when using Composer to install the modules.
## [3.0.9] - 2021-12-16
### [Fixed]
- Code improvements for the new v3 branch.
## [3.0.8] - 2021-12-16
### [Fixed]
- Automatic theme installation/upgrade is now fixed in local integration mode. An exception is only raised if permissions
do not allow for the automatic update to take place.
## [3.0.7] - 2021-12-16
### [Fixed]
- Updated references to legacy classes to the new implementations.
- Fixed resizing images when in local mode. Images cannot be resized in External integration mode as the images live
on the external server so cannot be resized by Magento. To resize images in external mode, create new image sizes in
in WordPress and these will be available in Magento automatically.
## [3.0.3] - 2021-12-15
### [Fixed]
- PHP URL class error in HeadAdditional block
## [3.0.1] - 2021-12-15
### [Changed]
- References to FishPig\WordPress\Model\Logger have been changed to FishPig\WordPress\App\Logger
## [3.0.0] - 2021-12-15
This is a new major version of this module and all add-on modules. The module now uses semantic versioning and each module has a public change log.
You can see the old change log here: https://github.com/bentideswell/magento2-wordpress-integration/blob/dbce94d8089fc4f8d5c88225010394ec4c5f7dd5/changelog.txt
### [Added]
- Ability to connect/integrate WordPress hosted on a separate server. Can still integrate local installations. This can be selected in the module config.
### [Removed]
- No longer able to resize images dynamically
- No longer able to run WP code in Magento using