Releases: jacobinmag/jacobin-core-functionality
Releases · jacobinmag/jacobin-core-functionality
0.5.26 - Featured Audio
Response format:
{
...
"featured_audio": {
"ID": 188724,
"post_author": "1",
"post_date": "2024-07-05 18:34:42",
"post_date_gmt": "2024-07-05 22:34:42",
"post_content": "\"sample-3s\".",
"post_title": "sample-3s",
"post_excerpt": "",
"post_status": "inherit",
"comment_status": "closed",
"ping_status": "closed",
"post_password": "",
"post_name": "sample-3s",
"to_ping": "",
"pinged": "",
"post_modified": "2024-07-05 18:34:45",
"post_modified_gmt": "2024-07-05 22:34:45",
"post_content_filtered": "",
"post_parent": 188657,
"guid": "https://jacobin.test/wp-content/uploads/2023/07/sample-3s.mp3",
"menu_order": 0,
"post_type": "attachment",
"post_mime_type": "audio/mpeg",
"comment_count": "0",
"filter": "raw",
"media_details": {
"dataformat": "mp3",
"channels": 2,
"sample_rate": 44100,
"bitrate": 128511.39112903226,
"channelmode": "stereo",
"bitrate_mode": "cbr",
"lossless": false,
"encoder_options": "CBR129",
"compression_ratio": 0.09106532818100359,
"fileformat": "mp3",
"filesize": 52079,
"mime_type": "audio/mpeg",
"length": 3,
"length_formatted": "0:03",
"encoder_settings": "Lavf57.83.100",
"artist": "",
"album": ""
}
},
...
}Full Changelog: 0.5.25...0.5.26
0.5.25
What's Changed
- Include email in guest author object by @misfist in #56
- Update
slugvalue to displaypost_nameby @misfist in #60 - Strip
cap-prefix from slug by @misfist in #61 - Add WP-CLI command to copy contents of footnotes to endnotes
- Change ACF fieldname from footnotes to endnotes
- Change REST field to get new endnotes field data
- Limit number of posts retrieved to 200 chunks.
resolves: #70
0.5.22 Rest API Updates and Tribune Image Maintenance Functions
- Add github actions for deployment
- Register ACF Fields within action
- Add permission_callback
- Fixes
PHP Notice: Function register_rest_route was called <strong>incorrectly</strong>. The REST API route definition for <code>jacobin/featured-content/(?P<slug>[a-zA-Z0-9-]+)</code> is missing the required <code>permission_callback</code> argument. For REST API routes that are intended to be public, use <code>__return_true</code> as the permission callback. Please see <a href="[https://wordpress.org/documentation/article/debugging-in-wordpress/">Debugging](https://wordpress.org/documentation/article/debugging-in-wordpress/%22%3EDebugging) in WordPress</a> for more information. (This message was added in version 5.5.0.)
- Add image ID to gallery img tag
- Add user data
emailfirst_namelast_name- https://trello.com/c/WfJ96ruJ
- Term Data Info
- Add
parent_objpropidcountdescriptionlinknameslugtaxonomyparent
- https://trello.com/c/3d5mNH1Q
- Add
- Add CLI util to delete media
wp delete-featured-images --site=4 --before=20210701 --dry-runwp delete-attachments --site=4 --before=20210701 --dry-run- https://trello.com/c/D3MTmTPD
Add post-contributor route
Add post-contributor route
- Register route
- Add callback to fetch data
data will be returned in the form:
{
'author name': [
'author',
'interviewer',
'translator'
],
'author name': [
'interviewer',
],
'author name': [
'translator'
],
}Add display_name property for consistency
Clean up method formatting
Return translator object instead of id
Suppress Shortcode alert message
Added search endpoint for new Relevanssi search
usage: /wp-json/relevanssi/v1/search?s=query
Updates to implement preview and view posts
- Added
$frontend_urland$frontend_tokento Settings > General page. - Modified the preview links to use custom URL to display on frontend
- Modified the view links to point to frontend URL provided in admin
Embed Script Shortcode
#443 Added shortcode for non-admin users to embed scripts. @link jacobinmag/jacobin#443
@link https://codex.wordpress.org/Roles_and_Capabilities#unfiltered_html
0.4.13
0.4.12
Version 0.4.9
- Added media cleanup utility
- Removed unused image sizes
- Added WP-CLI integration