daronspence / acf-widgets Goto Github PK
View Code? Open in Web Editor NEWAn addon plugin for ACF for WordPress
An addon plugin for ACF for WordPress
Line 279 of admin-setup.php
Can't access the debugging page in LITE mode so we don't want to display template "errors" if the dev leaves the option checked accidentally.
Try to find a way to get this working, or make it degrade more gracefully.
if ( empty( $submenu['themes.php'][7] ) ){
return;
}
Directly after line 214 of includes/admin-setup.php
When checking the license, send the current version number in the GET request so we can track who is on which versions through access logs.
License may be obfuscated when it is successfully activated
Undefined index for non admin users upon login.
Notice: Undefined index: update_plugins in /Applications/MAMP/htdocs/grell_neu/wp-content/plugins/acf-widgets/includes/admin-setup.php on line 281
Check out this handy function Daron
http://php.net/manual/en/function.version-compare.php
Update version comparison in includes/acf-404.php
to use PHP function instead of my spaghetti workaround.
Would you be willing to add composer support this project? It would be awesome if you did.
Bug in widget CPT query. Recommended switch to "posts_per_page"
Hi again - me on the titles thing. I'm having a problem where I have show titles enabled using
add_filter('show_acfw_titles', '__return_true');
But, if the title of the widget is left blank in Appearance > Widgets, the name of the widget itself appears instead. I believe in that instance nothing should appear (that's how it works with other widgets anyway).
For instance, if I create an ACF Widget called "My Pretty Little Widget", with the filter to show titles = true, then drag a new instance of My Pretty Little Widget into the sidebar and leave its title blank, the widget appears in the sidebar with the title My Pretty Little Widget.
I know it's a strange use case because hey, why enable it and then leave it blank? but I know my users will be confused if they leave the field blank and something still appears on the front end. Can you help? Thank you!
Can't trust em.
Use $pagenow you dummy
http://codex.wordpress.org/Global_Variables
http://codex.wordpress.org/Function_Reference/get_current_screen
Unescaped characters causing a parse error in the eval
code. Escape those for the title and description. Does not affect slug (WP already sanitized) or the ID (int). Possibly filter out invalid characters for code included widgets...
WordPress core l10n.php
line 105.
Need to search for the $text
parameter, which is the original english. After that I can translate it via __()
includes/admin-setup.php
line 260 in ACFW.
License is shown as invalid if enough activations are not left. FIX IT DARON
I use the following function fairly frequently to allow my clients to enter widget titles which will appear in the control panel, but not on the front end of the web site. This allows them to distinguish between 10 versions of a specific widget type (text widgets, for instance) in the Appearance > Widgets control panel, without having all those titles appear on the site. Titles that begin with an ! exclamation point won't show on the front end.
All the function does is look to see if a widget title starts with an exclamation point (!), and if it does, return blank when rendered on the front end.
add_filter( 'widget_title', 'remove_widget_title');
function remove_widget_title( $widget_title ) {
if ( substr ( $widget_title, 0, 1 ) == '!' )
return;
else
return ( $widget_title );
}
I've never had a problem with it working in any other widget, but for ACF Widgets it returns empty in the control panel as well as the front end of the site if the title begins with an exclamation point. I've tried various low/high priorities and none seem to help.
Obviously not a biggie, and if you choose not to change the code I understand, but I figured I'd share since the function's never exhibited this behavior before on any native or plugin-added widgets.
Cheers!
I created a field in a field group for pages and and a second field in a field group for a widget. The second field is a clone of the first one.
When I save the widget on the widgets page (wp-admin/widgets.php), the cloned field won't be saved. Can you confirm this?
Edit: I needed to check "Prefix Field Names" to made it work.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.