Comments (3)
Can be addressed like so (in mp_to_wp()
):
if ( isset( $args['post_name'] ) ) {
$args['post_name'] = sanitize_title( ((array) $args['post_name'])[0] );
}
Not too sure why I'm seeing this only now[.]
I mostly long-press links from my feed reader; in this case Indigenous does not set a title (and suggest_post_title()
returns an empty string) and the error does not occur. In the rare occurrence that I use my mobile browsers actual share menu, it does fill out the page title, and I get the error.
from wordpress-micropub.
I just ran into this again and wondered why it worked on my other site. Turns out I had applied the workaround above ...
Am I the only one seeing this?
Tested with all plugins disabled except IndieAuth and Micropub and it happens all the time, and stops as soon as I apply the change above.
from wordpress-micropub.
Might be different for JSON vs. form requests? I seem to remember the spec saying JSON values should always be arrays. Either way, casting to an array and then grabbing the first item should work for both single strings and arrays with one or more (string) values.
from wordpress-micropub.
Related Issues (20)
- If a Post is Updated By a User Other Than the Original Creator Make sure the _edit_last property is set
- Support if Latitude, Longitude, and Altitude are Passed as top-level properties rather than as the location property. HOT 1
- Adjust return on q=source for media HOT 1
- Media Endpoitn returns 403 response HOT 2
- Refactor to Allow Content to Be Inserted into a Custom Location HOT 1
- Update Links in main file HOT 1
- Sideloading Images Not Working HOT 1
- Implement Cache-Control Headers on Queries
- mp-destination support
- Add visibility to q=config
- Update Media Endpoint Return HOT 1
- No Longer Store Entire Auth Response
- Presence of <SVG in POSTed content results in 403 HOT 7
- Undefined variable: $props
- Support HTML content HOT 3
- Handle PHP 5.6 incompatibility HOT 1
- Support follow-of mf2 property HOT 1
- Remove Draft Setting HOT 1
- Support additional properties in add/update HOT 2
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 wordpress-micropub.