Jacobin Core Functionality Plugin
Contains the site's core functionality
by Pea · github.com/misfist/jacobin-core-functionality · website
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/misfist/jacobin-core-functionality/archive/refs/heads/main.zipReadme
=== Jacobin Core Functionality === Contributors: misfist Tags: custom post type, custom taxonomy, rest api Requires at least: 4.7 Tested up to: 4.9.4 Version: 0.5.4 License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html
Contains the site's core functionality.
== Description ==
Contains the site's core functionality.
For backwards compatibility, if this section is missing, the full length of the short description will be used, and Markdown parsed.
== Installation ==
This section describes how to install the plugin and get it working.
- Upload
jacobin-core-functionality.phpto the/wp-content/plugins/directory - Activate the plugin through the 'Plugins' menu in WordPress
== Changelog ==
0.5.4 Febrary 3, 2020
- Added search endpoint for new Relevanssi search (usage: /wp-json/relevanssi/v1/search?s=query)
0.5.1 October 25, 2018
- Modified preview link in admin to point to
$home_url. '/editor/posts/'.$id. '/?_wpnonce=' .$nonceso that posts can be previewed. - Included
acffields in revision post type - Registered post fields to revisions
0.5.0 April 30, 2018
-
454 Added Guest Author export function. @link https://github.com/positiondev/jacobin/issues/454
-
456 Added
categoriestorelated_articles@link https://github.com/positiondev/jacobin/issues/456
0.4.14 Febrary 27, 2018
-
443 Added shortcode for non-admin users to embed scripts. @link https://github.com/positiondev/jacobin/issues/443
@link https://codex.wordpress.org/Roles_and_Capabilities#unfiltered_html
0.4.13 February 23, 2018
-
438 Fixed excerpt in featured content response @link https://github.com/positiondev/jacobin/issues/438
-
439 Fixed custom taxonomy responses. Reverted changes made in 0.4.10 and instead modified
status-internalrest $args @link https://github.com/positiondev/jacobin/issues/439
0.4.12 February 14, 2018
- Added DB performance functions
- Included post categories in response for featured content
0.4.11.1 February 15, 2018
- Added function to delete first image from posts
0.4.11 February 12, 2018
- User utilities to remove users based on role from network
0.4.10 February 1, 2018
- Fixed issue causing error when trying to access
/wp-json/wp/v2/posts?status=draftJacobin_Core_Taxonomywas settingrest_baseto strtolower( $this->plural ). So, our custom taxonomy 'internal-status', which has the plural label 'Status' was colliding with the built-in Status taxonomy. Changing therest_baseto something unique solved the problem.{ "code": "rest_invalid_param", "message": "Invalid parameter(s): status", "data": { "status": 400, "params": { "status": "status[0] is not of type integer." } } }
0.4.9 January 25, 2018
- Added media cleanup utility
- Removed unused image sizes
- Added WP-CLI integration
0.4.8 January 17, 2018
- Added string cleanup utility function
0.4.7 November 22, 2017
-
389 Added footnotes field to posts @link https://github.com/positiondev/jacobin/issues/389
-
390 Added second feature image to issues @link https://github.com/positiondev/jacobin/issues/390
-
392 Fixed issue resulting in error in version 3 @link https://github.com/positiondev/jacobin/issues/392
- Added condition to get the version
-
394 Modified
acfresponse for related issue to returnvolume_number@link https://github.com/positiondev/jacobin/issues/394
0.4.6 October 16, 2017
-
353 Added back featured media to listed works @link https://github.com/positiondev/jacobin/issues/343#issuecomment-337048244
0.4.5 October 16, 2017
-
353 Formatted section title values using
the_titlefilter @link https://github.com/positiondev/jacobin/issues/353
0.4.4 October 14, 2017
-
361 Commented out listicle section type @link https://github.com/positiondev/jacobin/issues/361
0.4.3 October 11, 2017
-
361 Added back listicle section type @link https://github.com/positiondev/jacobin/issues/361
-
354 Added featured image to sections (removed from section items) @link https://github.com/positiondev/jacobin/issues/354
0.4.2 October 6, 2017
-
354 Added featured image to content sections @link https://github.com/positiondev/jacobin/issues/354
-
343 Added publication URL to Listed Works @link https://github.com/positiondev/jacobin/issues/343
= 0.4.1 October 1, 2017 =
-
336 Allowed editor role to view list of users (cap =
list_users) so that they can manage guest authors @link https://github.com/positiondev/jacobin/issues/346
= 0.4.0 October 1, 2017 =
-
342 Changed content section structure @link https://github.com/positiondev/jacobin/issues/342
-
343 Changed "Annotated Booklist" @link https://github.com/positiondev/jacobin/issues/343
= 0.3.22 September 30, 2017 =
-
345 Added post memo field @link https://github.com/positiondev/jacobin/issues/345
-
333 Changed Status label to singular form. @link https://github.com/positiondev/jacobin/issues/332#issuecomment-332030317
-
344 Added republication publisher field and adapted checkbox @link https://github.com/positiondev/jacobin/issues/344
= 0.3.21 September 28, 2017 =
-
329 Added
volume_numberfield to issue and added to response @link https://github.com/positiondev/jacobin/issues/329 -
331 Added boolean
tocfield to post. Response is atacf->toc@link https://github.com/positiondev/jacobin/issues/331
= 0.3.19 September 25, 2017 =
-
332 Added new status taxonomy for internal use.
-
334 Added Autop for antescript and postscript. wysiwyg fields are now treated like
the_content.
= 0.3.18 Septembere 21, 2017 =
-
326 Modified featured content (
/wp-json/jacobin/featured-content/{slug}/) rendered title to use default filters -
326 Added
meta_contenttext filters and applied to subhead fields.
= 0.3.17 September 12, 2017 =
- Removed Interviewer field group
= 0.3.16 September 11, 2017 =
-
281 Changed tag taxonomy custom field type to multi-select.
= 0.3.15 September 11, 2017 =
- Added feature support usually added via a theme for when no theme is used.
= 0.3.14.1 July 24, 2017 =
-
307 - @link https://github.com/positiondev/jacobin/issues/307
- Changed Home Content row colors
- Changed "Home Content 1 Text", "Home Content 2 Text" and "Home Content 3 Text" labels to "Home Title 1", "Home Title 2" and "Home Title 3"
- Removed Home Content 2 Tag and Home Content 3 Tag
- Rename the tag field to
home_content_tagand its label "Featured Tag"; note: property is nowhome_content_tag - Created "Featured Category" select field
- Created "Featured Series" select field
- Moved route to
section-topics
= 0.3.14 July 20, 2017 =
-
307 - @link https://github.com/positiondev/jacobin/issues/307
- Added new route at
/wp-json/jacobin/featured-content/section-titles
= 0.3.13 July 17, 2017 =
-
307 - @link https://github.com/positiondev/jacobin/issues/307
- Increased home features to max 40
- Reduced editors picks to max 4
- Added text fields:
home_content_1,home_content_2,home_content_3 - Added tag fields:
home_content_1_tag,home_content_2_tag,home_content_3_tag
= 0.3.12 July 11, 2017 =
-
305 - @link https://github.com/positiondev/jacobin/issues/305 , #296 - @link https://github.com/positiondev/jacobin/issues/296
- Filtered default WP media markup
-
304 - https://github.com/positiondev/jacobin/issues/304
- Enabled multiple translators
= 0.3.11 June 9, 2017 =
-
291 - @link https://github.com/positiondev/jacobin/issues/291
- Removed escaping for
titleproperty onfeatured-content
- Removed escaping for
= 0.3.10 June 8, 2017 =
-
281 - @link https://github.com/positiondev/jacobin/issues/281
- Organized post edit fields into tab groups
-
Fixed PHP warnings
Trying to get property of non-object Line: 263 File: /home/jacobin/webapps/editor_dev/wp-content/plugins/jacobin-core-functionality/includes/class-jacobin-core-register-fields.php Uninitialized string offset: 0 Line: 263 File: /home/jacobin/webapps/editor_dev/wp-content/plugins/jacobin-core-functionality/includes/class-jacobin-core-register-fields.php Trying to get property of non-object Line: 212 File: /home/jacobin/webapps/editor_dev/wp-content/plugins/jacobin-core-functionality/includes/helpers.php Undefined offset: 0 Line: 212 File: /home/jacobin/webapps/editor_dev/wp-content/plugins/jacobin-core-functionality/includes/helpers.php
= 0.3.9 June 8, 2017 =
-
291 - @link https://github.com/positiondev/jacobin/issues/291
- Removed escaping for
titleproperty onrelated-articlesandfeatured-content
- Removed escaping for
= 0.3.8 May 19, 2017 =
-
273 - https://github.com/positiondev/jacobin/issues/273
- Modified
acfresponse for related issues to returnissue_numberandissue_season
- Modified
= 0.3.7 May 16, 2017 =
-
203 Changed
antescriptandpostscriptfields to wysiwyg - Removed unused walker class
- Removed
jacobin_copy_custom_fieldsfrominitaction
= 0.3.6 April 27, 2017 =
-
203 Added
antescriptandpostscriptfields to post
= 0.3.5 April 24, 2017 =
-
198 Added
nicknamefield toguest-author
= 0.3.4 March 28, 2017 =
- Changed
url_sourcetosource_urlinfeatured_imagefield
= 0.3.3 March 28, 2017 =
-
183 Added featured image to response for all public post types for which
show_in_restis true
= 0.3.2 March 27, 2017 =
-
182 Limited related posts fields to
publishstatus
= 0.3.1 March 20, 2017 =
- Removed featured content fields and modified row colors
= 0.3.0 March 20, 2017 =
- Modify featured content UI and response
= 0.2.9 March 16, 2017 =
- Registered featured image (
featured_image) for each public post type
= 0.2.8 March 15, 2017 =
-
178 Added
issue_seasonfield to issue post type and registered in REST API -
165 Replicated
better_featured_imageresponse for all endpoints -
177 Added slug to author response - comes from
cap-user_loginfield inguest-authorpost -
163 Added
subheadandauthorsfor the featured articles indepartmentandissueresponses - Changed
custom_fieldsproperty to defaultacf - Limited related post lists to post =
publish
= 0.2.7.2 March 8, 2017 =
- Enabled
guest-authorsto be retrieve usingid(?id={id}) andterm_id(?term_id={term_id})
= 0.2.7.1 March 4, 2017 =
- Enabled guest-authors to be retrieve using slug at
/wp-json/jacobin/using?slug={slug}
= 0.2.7 March 3, 2017 =
-
Modified Featured Content to split Home into sections
/wp-json/jacobin/featured-content?slug=home-feature/wp-json/jacobin/featured-content/home-feature
"enum": [ "home-feature", "home-1", "home-2", "home-3", "home-4", "home-5", "editors-picks" ], -
Added 2 additional featured content fields:
home_4andhome_5 -
Added
excerptto Featured Content response -
Modified post admin screen
- Moved Excerpt into Article Details section
- Moved Authors below Publish section in right column
= 0.2.6.1 March 2, 2017 =
-
171 added
term_idandauthor_postslink to endpoint/wp-json/wp/v2/guest-author - Added
featured_articlefield toissueanddepartment
= 0.2.6 March 1, 2017 =
-
173 Modified related_articles and issue_articles to return up to 20 items
-
171 Register
guest-termin REST API and addedterm_idto author data/wp-json/wp/v2/posts?authors=426
= 0.2.5 February 28, 2017 =
- Converted
interviewerfield to multi-select - Added
jacobin_get_guest_author_meta_for_field()helper for getting guest author information based on field name - Added route for guest-authors accessed at
jacobin/guest-author/(?P<id>\d+)where(?P<id>\d+)isid - Added
_collectionlink field that links to listing of posts for author
= 0.2.4 February 22, 2017 =
- Added back
interviewerfield
= 0.2.3.2 February 20, 2017 =
- Fixed issue
parent_slugalways returning false in post response
= 0.2.3.1 February 19, 2017 =
-
Added
parent_slugtodepartmentresponse -
Fixed PHP Notice errors
Undefined variable: taxonomy Line: 394Undefined variable: taxonomy Line: 392Line: 395
= 0.2.3 February 19, 2017 =
-
169 Updated related post fields
= 0.2.2.2 February 18, 2017 =
- Limit hierarchical
departmenttaxonomy list to 2 levels deep using CSS
= 0.2.2.1 February 8, 2017 =
- Corrected undefined variable errors in helpers.php
= 0.2.2 February 8, 2017 =
- Limit hierarchical
departmenttaxonomy list to 2 levels deep- Created custom
Jacobin_Core_Taxonomy_Walkerclass - Filtered
wp_terms_checklist_argsto use custom walker fordepartment
- Created custom
= 0.2.1.2 February 7, 2017 =
-
162
- Added helper function
jacobin_get_post_termsto addparent_slugto term object - Added term
parent_slugto department response
- Added helper function
= 0.2.1.1 February 7, 2017 =
-
162
- Added
dateto modified response - Changed
post_titletotitleto make consistent with other endpoints - Changed
post_nametoslugto make consistent with other endpoints - Changed
IDtoidto make consistent with other endpoints
- Added
"id",
"date",
"title"['rendered'],
"slug",
"subhead",
"authors",
"departments",
"featured_image"
= 0.2.1 February 6, 2017 =
-
162 Modified response for featured content endpoints.
"ID",
"post_title",
"post_name",
"subhead",
"authors",
"post_date",
"departments",
"featured_image"
= 0.2.0 February 3, 2017 =
- Registered custom fields.
= 0.1.16 January 13, 2017 =
-
150 - Added Home Page Content
- Allows up to 10 posts
- Accessed at
wp-json/jacobin/featured-content/home-content
= 0.1.15 January 9, 2017 =
- Fixed error - `Fatal error: Can't use function return value in write context in /home/jacobin/webapps/editor_dev/wp-content/plugins/jacobin-core-functionality/includes/class-jacobin-core-register-fields.ph