WP Manifestindependent plugin directory
manifest / content / jacobin-core-functionality

Jacobin Core Functionality Plugin

Contains the site's core functionality

by Pea · github.com/misfist/jacobin-core-functionality · website

2stars
0forks

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.zip

Readme

=== 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.

  1. Upload jacobin-core-functionality.php to the /wp-content/plugins/ directory
  2. 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=' . $nonce so that posts can be previewed.
  • Included acf fields in revision post type
  • Registered post fields to revisions

0.5.0 April 30, 2018

0.4.14 Febrary 27, 2018

0.4.13 February 23, 2018

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=draft Jacobin_Core_Taxonomy was setting rest_base to strtolower( $this->plural ). So, our custom taxonomy 'internal-status', which has the plural label 'Status' was colliding with the built-in Status taxonomy. Changing the rest_base to 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

0.4.6 October 16, 2017

0.4.5 October 16, 2017

0.4.4 October 14, 2017

0.4.3 October 11, 2017

0.4.2 October 6, 2017

= 0.4.1 October 1, 2017 =

= 0.4.0 October 1, 2017 =

= 0.3.22 September 30, 2017 =

= 0.3.21 September 28, 2017 =

= 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_content text filters and applied to subhead fields.

= 0.3.17 September 12, 2017 =

  • Removed Interviewer field group

= 0.3.16 September 11, 2017 =

= 0.3.15 September 11, 2017 =

= 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_tag and its label "Featured Tag"; note: property is now home_content_tag
  • Created "Featured Category" select field
  • Created "Featured Series" select field
  • Moved route to section-topics

= 0.3.14 July 20, 2017 =

= 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 =

= 0.3.11 June 9, 2017 =

= 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 =

= 0.3.8 May 19, 2017 =

= 0.3.7 May 16, 2017 =

  • 203 Changed antescript and postscript fields to wysiwyg

  • Removed unused walker class
  • Removed jacobin_copy_custom_fields from init action

= 0.3.6 April 27, 2017 =

  • 203 Added antescript and postscript fields to post

= 0.3.5 April 24, 2017 =

  • 198 Added nickname field to guest-author

= 0.3.4 March 28, 2017 =

  • Changed url_source to source_url in featured_image field

= 0.3.3 March 28, 2017 =

  • 183 Added featured image to response for all public post types for which show_in_rest is true

= 0.3.2 March 27, 2017 =

  • 182 Limited related posts fields to publish status

= 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_season field to issue post type and registered in REST API

  • 165 Replicated better_featured_image response for all endpoints

  • 177 Added slug to author response - comes from cap-user_login field in guest-author post

  • 163 Added subhead and authors for the featured articles in department and issue responses

  • Changed custom_fields property to default acf
  • Limited related post lists to post = publish

= 0.2.7.2 March 8, 2017 =

  • Enabled guest-authors to be retrieve using id ( ?id={id} ) and term_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_4 and home_5

  • Added excerpt to 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_id and author_posts link to endpoint /wp-json/wp/v2/guest-author

  • Added featured_article field to issue and department

= 0.2.6 March 1, 2017 =

  • 173 Modified related_articles and issue_articles to return up to 20 items

  • 171 Register guest-term in REST API and added term_id to author data

    /wp-json/wp/v2/posts?authors=426

= 0.2.5 February 28, 2017 =

  • Converted interviewer field 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+) is id
  • Added _collection link field that links to listing of posts for author

= 0.2.4 February 22, 2017 =

  • Added back interviewer field

= 0.2.3.2 February 20, 2017 =

  • Fixed issue parent_slug always returning false in post response

= 0.2.3.1 February 19, 2017 =

  • Added parent_slug to department response

  • Fixed PHP Notice errors

    Undefined variable: taxonomy
    Line: 394
    Undefined variable: taxonomy
    Line: 392
    Line: 395

= 0.2.3 February 19, 2017 =

  • 169 Updated related post fields

= 0.2.2.2 February 18, 2017 =

  • Limit hierarchical department taxonomy 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 department taxonomy list to 2 levels deep
    • Created custom Jacobin_Core_Taxonomy_Walker class
    • Filtered wp_terms_checklist_args to use custom walker for department

= 0.2.1.2 February 7, 2017 =

  • 162

    • Added helper function jacobin_get_post_terms to add parent_slug to term object
    • Added term parent_slug to department response

= 0.2.1.1 February 7, 2017 =

  • 162

    • Added date to modified response
    • Changed post_title to title to make consistent with other endpoints
    • Changed post_name to slug to make consistent with other endpoints
    • Changed ID to id to make consistent with other endpoints
"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

Read the full README on GitHub →