Plugin Directory

Changeset 1454762


Ignore:
Timestamp:
07/14/2016 02:37:18 PM (10 years ago)
Author:
tylerdigital
Message:

origin

Location:
acf-tablepress/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • acf-tablepress/trunk/acf-tablepress.php

    r1303016 r1454762  
    33Plugin Name: Advanced Custom Fields: TablePress
    44Description: ACF field to select one or many TablePress tables
    5 Version: 1.3.1
     5Version: 1.3.2
    66Author: Tyler Digital
    77Author URI: http://tylerdigital.com
     
    2323  along with this program; if not, write to the Free Software
    2424  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
     25*/
    2526
    26 */
     27if( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
    2728
    2829function acftp_init() {
     
    6566        }
    6667      }
    67     } else {
    68       /* For ACF 5  */
    69       // $version = 5 and can be ignored until ACF6 exists
    70       function include_field_types_tablepress( $version ) {
    71         include_once 'tablepress-v5.php';
    72       }
    73 
    74       add_action( 'acf/include_field_types', 'include_field_types_tablepress' );
    75 
    76       /* For ACF 4  */
    77       function register_fields_tablepress() {
    78         include_once('tablepress-v4.php');
    79       }
    80 
    81       add_action('acf/register_fields', 'register_fields_tablepress');
    82 
    83       add_action( 'init', 'acftp_load_plugin_textdomain' );
    84       function acftp_load_plugin_textdomain() {
    85         $domain = 'acf-tablepress';
    86         $locale = apply_filters( 'plugin_locale', get_locale(), $domain );
    87         load_textdomain( $domain, WP_LANG_DIR . '/' .$domain. '/' . $domain . '-' . $locale . '.mo' );
    88         load_plugin_textdomain( $domain, FALSE, dirname( plugin_basename( __FILE__ ) ) . '/languages/' );
    89       }
    9068    }
    9169  }
     70
     71  /* For ACF 5  */
     72  // $version = 5 and can be ignored until ACF6 exists
     73  function include_field_types_tablepress( $version ) {
     74    include_once 'tablepress-v5.php';
     75  }
     76  add_action( 'acf/include_field_types', 'include_field_types_tablepress' );
     77
     78  /* For ACF 4  */
     79  function register_fields_tablepress() {
     80    include_once('tablepress-v4.php');
     81  }
     82  add_action('acf/register_fields', 'register_fields_tablepress');
     83
     84  add_action( 'init', 'acftp_load_plugin_textdomain' );
     85  function acftp_load_plugin_textdomain() {
     86    $domain = 'acf-tablepress';
     87    $locale = apply_filters( 'plugin_locale', get_locale(), $domain );
     88    load_textdomain( $domain, WP_LANG_DIR . '/' .$domain. '/' . $domain . '-' . $locale . '.mo' );
     89    load_plugin_textdomain( $domain, FALSE, dirname( plugin_basename( __FILE__ ) ) . '/languages/' );
     90  } 
    9291}
    9392
  • acf-tablepress/trunk/readme.txt

    r1303016 r1454762  
    33Tags: advanced custom fields, acf, tablepress, tables, table, select table, embed table
    44Requires at least: 4.0
    5 Tested up to: 4.4
    6 Stable tag: 1.3.1
     5Tested up to: 4.5.2
     6Stable tag: 1.3.2
    77
    88ACF field type to select a TablePress table
     
    2222**Follow this plugin on [GitHub](https://github.com/tylerdigital/acf-tablepress)**
    2323
    24 
    2524== Installation ==
    26251. Copy the `acf-tablepress` folder into your plugins folder
     
    3029This field can return the table ID for the table selected, or the full HTML of the table (the same output as the rendered shortcode).
    3130
    32 When returning the table ID, either of the following code snippets will output your table.
     31When returning the table ID, either of the following code snippets will output your table (replacing 'your_table_here' with the field name you defined in your ACF Field Group settings).
    3332`
    3433<?php
     
    5554`
    5655
     56For a more detailed explanation, see our article, [Setting up an ACF field for TablePress](http://tylerdigital.com/document/setting-up-an-acf-field-for-tablepress/).
     57
    5758== Changelog ==
     59
     60= 1.3.2 =
     61* Fix: Fixed bug that prevented non-administrator users from inserting tables.
     62* Fix: Fixed bug that failed to display the table while logged out and using "HTML Output"
    5863
    5964= 1.3.1 =
Note: See TracChangeset for help on using the changeset viewer.