-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Fonts Library: Backend #52704
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Fonts Library: Backend #52704
Changes from 1 commit
Commits
Show all changes
174 commits
Select commit
Hold shift + click to select a range
3d82594
Adding fonts library backend
matiasbenedetto d470388
load font library
matiasbenedetto df4708c
Format php.
jffng ccc5636
Update comment.
jffng da9d7ea
Fix array key merge.
jffng b318ab8
Format php.
jffng 9c4f88e
linting: lint and add comments where needed
5ef49fd
linting: add comments on rest fonts library file
1661b6d
lint: fix filedocs
5c81374
lint: fix lib loader errors
74f83f2
Misc updates to comments for consistency
mikachan 9853219
Update controller name in load.php
mikachan b929bf0
Add an install method to the font family class to simplify the code
matiasbenedetto 0c8978e
Renaming the Fonts Library class to Fonts Library Family to emphasize…
matiasbenedetto a51b59b
Renaming WP_Fonts_Library_Family to WP_Font_Family
matiasbenedetto 999775e
lint: make sure coding standards test passes
b1be3fe
Replace include for admin.php with file.php
mikachan 76c5074
Fix linter errors
mikachan 31591a5
adding 1 php test
matiasbenedetto bd6b697
Merge branch 'try/fonts-library-backend' of github.com:WordPress/gute…
matiasbenedetto d7dcaaf
fix test
matiasbenedetto 24ce14e
Move a few methods from Font Family class to Fonts Library
matiasbenedetto 4b166d8
move more methods to Fonts Library class
matiasbenedetto 9cd7cee
Breaking the classes in to smaller ones and adding tests
matiasbenedetto 6163367
add tests font Font Family class
matiasbenedetto ced015c
Create fonts dir at init of wordpress
matiasbenedetto 58dba25
Testing and refactoring WP_Font_Family class
matiasbenedetto 228f3d0
PHP formatting
matiasbenedetto 462b80a
fix syntax
matiasbenedetto 849a2d5
move comment
matiasbenedetto 2c81cad
update wording
matiasbenedetto b610d80
update comment
matiasbenedetto d9179f3
update comment
matiasbenedetto 005f21a
update comment
matiasbenedetto 52b447f
update comment
matiasbenedetto 82275a7
call to sanitize before creating the post
matiasbenedetto c9de5e9
fix return of method
matiasbenedetto 1cf6cc7
Addding a failing test for local fonts upload
matiasbenedetto 6bf1d8c
micro-optimization
matiasbenedetto 98faaff
interting the order of static and access control keywords in method d…
matiasbenedetto cba9f85
To avoid fatal error when the class is introduced into Core, add a gu…
matiasbenedetto ea8f23b
updating comments
matiasbenedetto 771c829
adding missing access keywords for methods
matiasbenedetto 253ec1f
WP_Theme_JSON_Gutenberg instead of WP_Theme_JSON
matiasbenedetto e6879d0
Moving init calls to a new file.
matiasbenedetto 83199e6
adding comment to file
matiasbenedetto afc6a48
format PHP
matiasbenedetto c3c7169
update comment
matiasbenedetto 0aa582a
syntax change
matiasbenedetto 2803603
syntax change
matiasbenedetto 82aefd9
update comment
matiasbenedetto c73ee9c
add missing 'new' while returning a WP_Error
matiasbenedetto 392adf0
fix return comment
matiasbenedetto 5b20914
renaming variable
matiasbenedetto 11ad658
stylistic change to early return
matiasbenedetto 9489974
shortening the syntax and variable renaming
matiasbenedetto 6f2c113
Stylistic change: switching the order of parameters of assertEquals call
matiasbenedetto 3acc356
simplify delete_asset method code
matiasbenedetto 4aa9660
refactor uninstall endpoint response
matiasbenedetto 92ae857
fixing return type comment
matiasbenedetto 80cd47b
fixing return type and refactor to early return
matiasbenedetto b689232
check is post_id is an error
matiasbenedetto f28a81d
using assertStringEndsWith assertion
matiasbenedetto 37cae56
update comment
matiasbenedetto 7b13187
update comment
matiasbenedetto 1a5ce29
update comment
matiasbenedetto 45ddcf1
update comment
matiasbenedetto 1c518d6
replace assertEquals by assertSame
matiasbenedetto af28cd3
assertSame and assertCount
matiasbenedetto 503f449
assertFileExists
matiasbenedetto f923cb1
assertFileDoesNotExist
matiasbenedetto b90e72f
simplify has_font_faces_method
matiasbenedetto 3a4e189
return early if there are no fonts to be installed
matiasbenedetto 1e009d0
fix assertWPError calls
matiasbenedetto 1d7c68b
adding public keyword to test cases
matiasbenedetto 6c06a37
improving the suffix and sanitiztion for get_filename_from_font_face …
matiasbenedetto 23de632
simplify uninstall method
matiasbenedetto 7562ff3
updating comments
matiasbenedetto fbaea86
adding covers in php tests
matiasbenedetto 76dce91
require font slug in the get_filename_from_font_face method
matiasbenedetto 66c8034
improve get_datamethod test
matiasbenedetto fe594aa
add fixture for WP_Font_Family_Test
matiasbenedetto b86907b
deleting unused data
matiasbenedetto 6acb5a0
renaminng test case
matiasbenedetto 72d08d6
fixing WP_Font_Family_Utils_Test tests
matiasbenedetto 4e5b583
format php
matiasbenedetto c51a611
adding dataProviders in WP_Font_Family_Utils_Test
matiasbenedetto 1cae91c
adding params comments in test cases
matiasbenedetto 06ee7a8
adding messages on tests with multiple assertions
matiasbenedetto fa9556c
test refactor
matiasbenedetto 9149731
refactor test
matiasbenedetto e2d1a34
php format
matiasbenedetto 4bf2846
add comments to data_provider
matiasbenedetto 192e865
change test case name
matiasbenedetto 06d950e
raname custom post type
matiasbenedetto 7c741c4
Merge branch 'trunk' into try/fonts-library-backend
matiasbenedetto b0a9e2d
add missing parameter in docbloc
matiasbenedetto 3cb3f49
adding comment
matiasbenedetto f17f49f
adding full stops at the end of param comments
matiasbenedetto b71213e
change test assert type
matiasbenedetto 042fb21
change test assert type
matiasbenedetto c029041
change test assert type
matiasbenedetto fd81086
use wp_handle_upload to write thee files and use wp-content/uploads/f…
matiasbenedetto 06e6996
Merge branch 'trunk' into try/fonts-library-backend
matiasbenedetto c1ac4a4
strict suffix check
matiasbenedetto 53b128c
update comment
matiasbenedetto 943904f
update comment
matiasbenedetto 02fce52
moving fonts library loading before checking if its available
matiasbenedetto 7675a9f
Merge branch 'try/fonts-library-backend' of github.com:WordPress/gute…
matiasbenedetto 1c13db8
Fixes local font upload tests
matiasbenedetto 8f306e0
allowing the installation of fonts with remote urls that won't be don…
matiasbenedetto c89af7c
delete google fonts data and endpoint
matiasbenedetto 357ad1c
PHP code formatting
matiasbenedetto 9d4d514
lint
matiasbenedetto e698420
php lint
matiasbenedetto 7e5e711
moving post_type registration to the WP_Fonts_Library class
matiasbenedetto a7f9ab4
change endpoint url
matiasbenedetto 7b911d3
adding test file for WP_REST_Fonts_Library_Controller class
matiasbenedetto 914158a
adding tests for innstall endpoint
matiasbenedetto 90a4f07
add test for font family constructor failure
matiasbenedetto 10a317a
Font Family constructo raise an exception if the slug was not provided
matiasbenedetto cc22568
add tests for uninstall endpoint
matiasbenedetto ba8b567
format php
matiasbenedetto 433aa54
add validation for install endpoint
matiasbenedetto bf7f3d0
fix comment
matiasbenedetto 72ac9f4
improve comment text
matiasbenedetto 05a6863
fix comment
matiasbenedetto a36cb63
fix comment
matiasbenedetto c4f1665
code format fix
matiasbenedetto 62b6b8d
fix test assertion and comment
matiasbenedetto d25993d
fix comment
matiasbenedetto 5f61437
fix comment
matiasbenedetto 3f4fffa
fix comment
matiasbenedetto 12cf920
update comment
matiasbenedetto 16b3133
code formatting
matiasbenedetto 94e4f69
fix comment
matiasbenedetto 7439610
update test name
matiasbenedetto 55ebc62
update assertion type
matiasbenedetto 2efd15b
Improves test descripcion
matiasbenedetto f4e32c0
code formatting
matiasbenedetto 9f11804
update test assertion type
matiasbenedetto 1a64fb8
comment update
matiasbenedetto 2b98fc7
update comment
matiasbenedetto be73689
update comment
matiasbenedetto e235ff2
update comment
matiasbenedetto 8de2259
update comment
matiasbenedetto 2a0b34b
update comment
matiasbenedetto 80ec701
update comment
matiasbenedetto 7b6e2a7
code and comments style
matiasbenedetto a9e29e1
comment style
matiasbenedetto 671f382
comment update
matiasbenedetto 217940a
update comment
matiasbenedetto 1a70f11
update comment
matiasbenedetto 8f74fc8
update assertion type
matiasbenedetto b98e2da
fix get_validation_error function
matiasbenedetto 99680a9
improving comment
matiasbenedetto 4c3e2fd
improve comment
matiasbenedetto f974f6e
adding test method description
matiasbenedetto 443659b
code format
matiasbenedetto b19d8ed
lint fixes
matiasbenedetto 14d4d13
Merge branch 'trunk' into try/fonts-library-backend
matiasbenedetto e67472f
fix test
matiasbenedetto 1d36d12
removing unwated parameter comment
matiasbenedetto e381f30
format
matiasbenedetto 26cdcb2
lint
matiasbenedetto 4ec9659
Exclude fontsapi tests.
hellofromtonya 274a8be
Exclude Fonts API in multisite tests
hellofromtonya e80c497
Core parity: since, formatting, package.
hellofromtonya b2a2ba6
init global function: renames & adds Core merge notes.
hellofromtonya 5453579
Moves post_type registration to init function.
hellofromtonya 82968c9
Remove function_exist wrap from Gutenberg init function.
hellofromtonya 6072214
adding constant check to load Fonts Library files
matiasbenedetto 7586418
Add constant to turn on Fonts Library in tests.
hellofromtonya e7660cc
Add constant to turn on Fonts Library in mu tests.
hellofromtonya File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
lint fixes
- Loading branch information
commit b19d8ed4c451ba940dccd5db8c879f628931ab0e
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.