Comments (6)
Oh yeah, that is really nice. When a setting is changed, Settings Revisions should add support for Stream, to be able to attach a link or something to the Stream entry so that they can navigate to the settings_revision post, which should eventually have a nice UI for viewing changes as opposed to the current raw view.
How would this work? Attaching post meta to the Stream post? Upon saving a new settings_revision, would Settings Revision then need to go look up the most recently inserted Stream post for updating settings and then attach the link to it?
from stream.
I think rather than having to look up the most recent record Setting Revisions could maybe just hook into Stream as it saves the record, get the record ID and save a revision ID as record meta. Stream could then just be looking to see if that meta exists, and if it does, provides the revision URL.
from stream.
@westonruter This is the action that SR should hook in: https://github.com/x-team/wp-stream/blob/224f71644020cc30e5db2356e3fe31f8b14dd5c3/includes/db-actions.php?source=cc#L95
from stream.
@shadyvb Can you update which line should be hooked into? Please use a blob URL instead of the master branch so that the link won't go out-of-date.
from stream.
@fjarrett @westonruter Just updated the URL.
from stream.
Relates to #71, which was determined should exist as it's own extension.
from stream.
Related Issues (20)
- VIP issue: Function get_user_attribute is deprecated since version 2.0.0! Use get_user_meta instead HOT 3
- Object ID is not included in CSV/JSON export
- Clarify that times shown are in UTC
- CSV export is malformed when any value contains a comma
- Stream Activity Block
- PHP 8.1: Unable to access widgets screen HOT 1
- Vulnerability in 3.9.2 HOT 4
- "Comment author" field is displayed incorrectly for comment moderation actions
- WP-CLI stream query fatal error: array_key_exists() must be of type array HOT 1
- PHP 8.1: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated
- PHP Error accessing user in wp cli triggered update
- PHP Fatal error: Uncaught ValueError w/ Yosat SEO HOT 5
- PHP 8.1 Constant WP_Stream\FILTER_SANITIZE_STRING is deprecated HOT 5
- Gravity Forms - Error Saving form HOT 2
- PHP Warnings/Notices on Gravity Forms note added
- Improve event source IP reporting HOT 1
- Rely on WP.org localization tooling
- 3.10.0 missing from Packagist HOT 3
- Dynamic callback function name cannot include hyphens HOT 6
- CLI: PHP Uncaught TypeError HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from stream.