Skip to content
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

891 local json #894

Draft
wants to merge 42 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
6023243
starter info for local JSON including enabled checks, and saving to f…
tw2113 Sep 16, 2022
335a271
load our new local json management file
tw2113 Sep 16, 2022
84c2836
code ordering and PHPDocs
tw2113 Sep 16, 2022
ce2e916
add new admin notice callback for non-writable folders
tw2113 Sep 16, 2022
bbf70a7
add support for when deleting post types and taxonomies, to still upd…
tw2113 Sep 16, 2022
3e97c82
add existing post type and taxonomy data to override filters
tw2113 Sep 16, 2022
b9ed132
revise file name construction and create some helper functions
tw2113 Sep 16, 2022
ca15a8f
potentially override our content types if we have none in database, a…
tw2113 Sep 16, 2022
32f14fd
return original empty data if local JSON not enabled
tw2113 Sep 16, 2022
0ca16a5
starter function for this for the moment
tw2113 Sep 17, 2022
c3a2102
rename function, add filter
tw2113 Sep 17, 2022
f1a77c8
filter the entire server path, including json file name
tw2113 Sep 17, 2022
3cbaebe
new filters for our textarea messaging so we can amend if using local…
tw2113 Sep 21, 2022
e6a8f60
all sorts of new messaging and filtering
tw2113 Sep 21, 2022
7536272
make sure we have get_current_screen before using
tw2113 Sep 21, 2022
6a462a4
lets get even closer to familiar naming convention here, rename to cp…
tw2113 Oct 17, 2022
476a59a
way too much new changes from todays work
tw2113 Oct 18, 2022
15b1b55
start the import process with some new buttons.
tw2113 Oct 18, 2022
735339c
lets only output if we are enabled
tw2113 Oct 18, 2022
e52e339
add "import local json" button to tools menu, handle import
tw2113 Oct 19, 2022
7b61ed9
handle loading per-network site to prevent loading all for each
tw2113 Oct 19, 2022
bc6c004
merge in #687 for individual content type removal
tw2113 Oct 19, 2022
a2186b6
change out new delete link with messagine about local JSON if applicable
tw2113 Oct 19, 2022
2dd4128
remove these callbacks since we went more inline for messaging
tw2113 Oct 19, 2022
d1f0cd1
latest changes, weak commit message
tw2113 Oct 24, 2022
9af6576
admin notice punctuation
tw2113 Oct 31, 2022
044615b
borrow from WP core for some red liink styling
tw2113 Oct 31, 2022
edee76b
create import links for items listed as local JSON only. Handle import
tw2113 Oct 31, 2022
c5354b3
remove no longer needed function
tw2113 Oct 31, 2022
2931f83
blog ID defaults to 1 anyway
tw2113 Oct 31, 2022
f05dee7
fix misused function for post type section
tw2113 Oct 31, 2022
59ef19e
fix type declaratins
tw2113 Oct 31, 2022
31e3eb6
add an import link helper
tw2113 Oct 31, 2022
7d7e8ec
redirect after handling.
tw2113 Oct 31, 2022
2114260
touch up our phpdocs
tw2113 Oct 31, 2022
6db86c6
touch up some phpdocs
tw2113 Nov 28, 2022
b10072f
fix copy paste error
tw2113 Nov 28, 2022
2c5b406
re-add our callbacks
tw2113 Nov 28, 2022
8ffd31e
remove early returns for when we had db versions
tw2113 Nov 28, 2022
94a3c09
returned merged arrays for taxonomies
tw2113 Nov 28, 2022
81e698f
more return early conditions
tw2113 Nov 28, 2022
059e0fb
guarding on taxonomies screen
tw2113 Nov 29, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions build/cptui-scripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -288,4 +288,25 @@ postboxes.add_postbox_toggles(pagenow);
$(el).val("");
});
});
$(".cptui-delete-post-type, .cptui-delete-taxonomy").on("click tap", function(e) {
e.preventDefault();
let msg = "";
let href = $(this).attr("href");
if (typeof cptui_listings_data !== "undefined") {
msg = cptui_listings_data.confirm;
}
let submit_delete_warning = $('<div class="cptui-submit-delete-dialog">' + msg + "</div>").appendTo(".cptui-listings").dialog({
dialogClass: "wp-dialog",
modal: true,
autoOpen: true,
buttons: {
OK: function() {
window.location.href = href;
},
Cancel: function() {
$(this).dialog("close");
}
}
});
});
})(jQuery);
2 changes: 1 addition & 1 deletion build/cptui-scripts.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading