Changeset 2502982
- Timestamp:
- 03/25/2021 02:47:15 AM (5 years ago)
- Location:
- lct-useful-shortcodes-functions/trunk
- Files:
-
- 4 edited
-
code/admin/taxonomies.php (modified) (6 diffs)
-
code/plugins/Avada/_admin.php (modified) (3 diffs)
-
lct-useful-shortcodes-functions.php (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lct-useful-shortcodes-functions/trunk/code/admin/taxonomies.php
r2238765 r2502982 1 1 <?php 2 /** @noinspection PhpMissingFieldTypeInspection */ 3 2 4 //Do not allow directly accessing this file 3 5 if ( ! defined( 'ABSPATH' ) ) … … 271 273 * @unused param $class 272 274 * @since 0.0 273 * @verified 202 0.01.16275 * @verified 2021.03.22 274 276 */ 275 277 function register_post_status( $taxonomy, $post_types ) { … … 328 330 $args['show_in_admin_all_list'] = false; 329 331 } else if ( $status_meta[ get_cnst( 'a_c_f_tax_public' ) ] === true ) { 330 $args['public'] = true; 332 $args['public'] = true; 333 $args['protected'] = false; 331 334 } else { 332 335 $args['show_in_admin_all_list'] = false; … … 392 395 add_action( "admin_footer-{$pagenow}", [ $this, 'extend_quick_edit_post_status' ] ); 393 396 } 394 395 396 return;397 397 } 398 398 … … 406 406 * @return string 407 407 * @since 2019.3 408 * @verified 20 19.03.07408 * @verified 2021.03.22 409 409 */ 410 410 function cache_key( $taxonomy, $full_prefix = false ) { … … 423 423 424 424 425 $r = $prefix . $taxonomy; 426 427 428 return $r; 425 return $prefix . $taxonomy; 429 426 } 430 427 -
lct-useful-shortcodes-functions/trunk/code/plugins/Avada/_admin.php
r2493704 r2502982 11 11 */ 12 12 class lct_Avada_admin { 13 /** 14 * @var int 15 */ 16 var $column_count = 0; 17 18 13 19 /** 14 20 * Start up the class … … 67 73 add_filter( 'fusion_attr_image-shortcode-tag-element', [ $this, 'prevent_image_element_lazy_loading_deep' ], 999 ); 68 74 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 ); 69 77 70 78 add_filter( 'fusion_element_button_content', [ $this, 'add_yoast_ga_onclick' ], 10, 2 ); … … 1393 1401 return $html; 1394 1402 } 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 } 1395 1429 } -
lct-useful-shortcodes-functions/trunk/lct-useful-shortcodes-functions.php
r2496136 r2502982 4 4 * Plugin URI: https://www.simplesmithmedia.com 5 5 * Description: Shortcodes & Functions that will help make your life easier. 6 * Version: 2021. 26 * Version: 2021.3 7 7 * Author: SimpleSmithMedia 8 8 * Author URI: https://www.simplesmithmedia.com -
lct-useful-shortcodes-functions/trunk/readme.txt
r2496136 r2502982 3 3 Tags: Functions, Shortcodes 4 4 Requires at least: 5.0 5 Tested up to: 5. 6.25 Tested up to: 5.7 6 6 Requires PHP: 5.6 7 7 License: GPLv2 or later … … 29 29 30 30 == 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 31 42 = 2021.2 = 32 43 *Release Date - 15 March 2021*
Note: See TracChangeset
for help on using the changeset viewer.