Comments (3)
Yupp saw that to today
This fixed it and some notices btw ;)
Hope to create a PR for this, else just copy+pasta it.
//return array
$url = 'http://' . $this->nicifyUrl( $value['url'] );
$value = array(
'title' => ( !empty( $value['title'] ) ) ? $value['title'] : '',
'url' => $url,
'external' => ( !empty( $value['external'] ) ) ? $value['external'] : ''
);
Ciao!
from acf-website-field.
Btw, maybe also do a empty check when returning?
from acf-website-field.
Fixed both issues, before it save saving just the url without "http://" which was messy and foolish of me. Now it checks if that is missing and adds it on output, but not for the returning of array, if it returns an array it uses the default database value.
from acf-website-field.
Related Issues (20)
- Error message fired when field required HOT 9
- Internal Link HOT 1
- Website Field Value not showing with wp_insert_post + update_post_meta HOT 1
- External link not working when placed on images HOT 2
- How has the code look like?
- Possible to add input validation HOT 4
- Any way to use relative links (by not adding http)? HOT 2
- Just a URL output... HOT 4
- HTTPS support HOT 2
- Repeater Output HOT 1
- ACF 5.0 upgrade - plugin not working HOT 3
- External Link not working HOT 1
- Tagging HOT 1
- No options in 5.1 HOT 1
- Current windows HOT 1
- URL Validation HOT 1
- Required is not working
- Screen shots HOT 1
- field is not operating as a link, it is behaving like a text field - anyone else had this issue? I'm using ACF 4. 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 acf-website-field.