Plugin Directory

Changeset 2502982


Ignore:
Timestamp:
03/25/2021 02:47:15 AM (5 years ago)
Author:
ircary
Message:

2021.3

*Release Date - 24 March 2021*

  • WP v5.7 Ready
  • Added:
    • add_filter( 'fusion_element_column_content', [ $this, 'reset_column_count' ], 2, 2 );
  • Updated:
    • register_post_status(); Need an adjustment to work with v5.7 & wp_force_plain_post_permalink()
  • Improved:
    • cache_key()
Location:
lct-useful-shortcodes-functions/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • lct-useful-shortcodes-functions/trunk/code/admin/taxonomies.php

    r2238765 r2502982  
    11<?php
     2/** @noinspection PhpMissingFieldTypeInspection */
     3
    24//Do not allow directly accessing this file
    35if ( ! defined( 'ABSPATH' ) )
     
    271273     * @unused   param $class
    272274     * @since    0.0
    273      * @verified 2020.01.16
     275     * @verified 2021.03.22
    274276     */
    275277    function register_post_status( $taxonomy, $post_types ) {
     
    328330                    $args['show_in_admin_all_list'] = false;
    329331                } else if ( $status_meta[ get_cnst( 'a_c_f_tax_public' ) ] === true ) {
    330                     $args['public'] = true;
     332                    $args['public']    = true;
     333                    $args['protected'] = false;
    331334                } else {
    332335                    $args['show_in_admin_all_list'] = false;
     
    392395            add_action( "admin_footer-{$pagenow}", [ $this, 'extend_quick_edit_post_status' ] );
    393396        }
    394 
    395 
    396         return;
    397397    }
    398398
     
    406406     * @return string
    407407     * @since    2019.3
    408      * @verified 2019.03.07
     408     * @verified 2021.03.22
    409409     */
    410410    function cache_key( $taxonomy, $full_prefix = false ) {
     
    423423
    424424
    425         $r = $prefix . $taxonomy;
    426 
    427 
    428         return $r;
     425        return $prefix . $taxonomy;
    429426    }
    430427
  • lct-useful-shortcodes-functions/trunk/code/plugins/Avada/_admin.php

    r2493704 r2502982  
    1111 */
    1212class lct_Avada_admin {
     13    /**
     14     * @var int
     15     */
     16    var $column_count = 0;
     17
     18
    1319    /**
    1420     * Start up the class
     
    6773        add_filter( 'fusion_attr_image-shortcode-tag-element', [ $this, 'prevent_image_element_lazy_loading_deep' ], 999 );
    6874        add_filter( 'fusion_shortcode_content', [ $this, 'fusion_shortcode_content_fusion_imageframe' ], 10, 3 );
     75
     76        add_filter( 'fusion_element_column_content', [ $this, 'reset_column_count' ], 2, 2 );
    6977
    7078        add_filter( 'fusion_element_button_content', [ $this, 'add_yoast_ga_onclick' ], 10, 2 );
     
    13931401        return $html;
    13941402    }
     1403
     1404
     1405    /**
     1406     * Reset the column_counter when we demand it
     1407     *
     1408     * @param string $html Full html string.
     1409     *
     1410     * @unused       param array  $args
     1411     * @return string Altered html markup.
     1412     * @date         2021.03.18
     1413     * @since        2021.3
     1414     * @verified     2021.03.18
     1415     * @noinspection PhpMissingParamTypeInspection
     1416     */
     1417    function reset_column_count( $html ) {
     1418        //if ( strpos( $args['class'], 'lct_override_column_count' ) !== false ) {
     1419        $html = preg_replace( '/fusion-builder-column-[0-9]/', 'fusion-builder-column-' . current_time( 'timestamp' ) . '_' . $this->column_count, $html );
     1420
     1421
     1422        $this->column_count ++;
     1423
     1424        //}
     1425
     1426
     1427        return $html;
     1428    }
    13951429}
  • lct-useful-shortcodes-functions/trunk/lct-useful-shortcodes-functions.php

    r2496136 r2502982  
    44 * Plugin URI: https://www.simplesmithmedia.com
    55 * Description: Shortcodes & Functions that will help make your life easier.
    6  * Version: 2021.2
     6 * Version: 2021.3
    77 * Author: SimpleSmithMedia
    88 * Author URI: https://www.simplesmithmedia.com
  • lct-useful-shortcodes-functions/trunk/readme.txt

    r2496136 r2502982  
    33Tags: Functions, Shortcodes
    44Requires at least: 5.0
    5 Tested up to: 5.6.2
     5Tested up to: 5.7
    66Requires PHP: 5.6
    77License: GPLv2 or later
     
    2929
    3030== Changelog ==
     31= 2021.3 =
     32*Release Date - 24 March 2021*
     33
     34* WP v5.7 Ready
     35* Added:
     36    * add_filter( 'fusion_element_column_content', [ $this, 'reset_column_count' ], 2, 2 );
     37* Updated:
     38    * register_post_status(); Need an adjustment to work with v5.7 & wp_force_plain_post_permalink()
     39* Improved:
     40    * cache_key()
     41
    3142= 2021.2 =
    3243*Release Date - 15 March 2021*
Note: See TracChangeset for help on using the changeset viewer.