Changeset 2316707
- Timestamp:
- 06/02/2020 03:43:45 PM (4 years ago)
- Location:
- wp-custom-body-class
- Files:
-
- 6 edited
- 22 copied
Legend:
- Unmodified
- Added
- Removed
-
wp-custom-body-class/tags/0.7.2/class-custom_body_class.php
r2118841 r2316707 5 5 * @author Andrei Lupu <euthelup@gmail.com> 6 6 * @license GPL-2.0+ 7 * @link http ://andrei-lupu.com7 * @link http 8 8 * @copyright 2014 Andrei Lupu 9 9 */ … … 21 21 * @const string 22 22 */ 23 protected $version = '0. 6.0';23 protected $version = '0.'; 24 24 25 25 /** … … 87 87 return; 88 88 } 89 if ( isset( $this->plugin_settings['admins_only'] ) && $this->plugin_settings['admins_only'] === "1" && ! current_user_can( 'manage_options' ) ) { 89 90 if ( 91 isset( $this->plugin_settings['admins_only'] ) 92 && $this->plugin_settings['admins_only'] === "1" 93 && ! current_user_can( 'manage_options' ) 94 ) { 90 95 return; 91 96 } … … 112 117 ), $this->version ); 113 118 global $post; 114 if ( isset( $this->plugin_settings['enable_autocomplete'] ) && $this->plugin_settings['enable_autocomplete'] ) {119 if ( isset( $this->plugin_settings['enable_autocomplete'] ) && $this->plugin_settings['enable_autocomplete'] ) { 115 120 $values = $this->get_unique_post_meta_values(); 116 // if ( ! empty ( $values ) ) {117 121 $val = wp_localize_script( $this->plugin_slug . '-admin-script', 'custom_body_class_post_values', $values ); 118 // } 119 } 120 } 121 } 122 122 } 123 } 124 } 123 125 124 126 /** … … 161 163 return false; 162 164 } 163 164 165 165 166 if ( $new_edit == "edit" ) { -
wp-custom-body-class/tags/0.7.2/custom_body_class.php
r2123377 r2316707 4 4 Plugin URI: https://a.lup.dev 5 5 Description: A plugin which allows you to add a custom CSS class the HTML body tag 6 Version: 0.7. 16 Version: 0.7. 7 7 Author: Andrei Lupu 8 8 Author URI: https://a.lup.dev -
wp-custom-body-class/tags/0.7.2/plugin-defaults.php
r2016871 r2316707 6 6 7 7 'display_on_post_types' => array('post' => 'on', 'page' => 'on'), 8 'allow_edit_on_post_page' => 1,9 'admins_only' => 0,10 'enable_autocomplete' => 1,8 'allow_edit_on_post_page' => , 9 'admins_only' => , 10 'enable_autocomplete' => , 11 11 'global_class' => '', 12 12 -
wp-custom-body-class/tags/0.7.2/readme.txt
r2123377 r2316707 3 3 Tags: custom, body, css, class 4 4 Requires at least: 4.9.0 5 Tested up to: 5. 2.06 Stable tag: 0.7. 15 Tested up to: 5. 6 Stable tag: 0.7. 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 23 23 24 24 == Changelog == 25 26 27 25 28 26 29 = 0.7.1 = -
wp-custom-body-class/tags/0.7.2/views/admin.php
r2118841 r2316707 9 9 * @author Andrei Lupu <euthelup@gmail.com> 10 10 * @license GPL-2.0+ 11 * @link http ://andrei-lupu.com11 * @link http 12 12 * @copyright 2013 Pixel Grade Media 13 13 */ -
wp-custom-body-class/trunk/class-custom_body_class.php
r2118841 r2316707 5 5 * @author Andrei Lupu <euthelup@gmail.com> 6 6 * @license GPL-2.0+ 7 * @link http ://andrei-lupu.com7 * @link http 8 8 * @copyright 2014 Andrei Lupu 9 9 */ … … 21 21 * @const string 22 22 */ 23 protected $version = '0. 6.0';23 protected $version = '0.'; 24 24 25 25 /** … … 87 87 return; 88 88 } 89 if ( isset( $this->plugin_settings['admins_only'] ) && $this->plugin_settings['admins_only'] === "1" && ! current_user_can( 'manage_options' ) ) { 89 90 if ( 91 isset( $this->plugin_settings['admins_only'] ) 92 && $this->plugin_settings['admins_only'] === "1" 93 && ! current_user_can( 'manage_options' ) 94 ) { 90 95 return; 91 96 } … … 112 117 ), $this->version ); 113 118 global $post; 114 if ( isset( $this->plugin_settings['enable_autocomplete'] ) && $this->plugin_settings['enable_autocomplete'] ) {119 if ( isset( $this->plugin_settings['enable_autocomplete'] ) && $this->plugin_settings['enable_autocomplete'] ) { 115 120 $values = $this->get_unique_post_meta_values(); 116 // if ( ! empty ( $values ) ) {117 121 $val = wp_localize_script( $this->plugin_slug . '-admin-script', 'custom_body_class_post_values', $values ); 118 // } 119 } 120 } 121 } 122 122 } 123 } 124 } 123 125 124 126 /** … … 161 163 return false; 162 164 } 163 164 165 165 166 if ( $new_edit == "edit" ) { -
wp-custom-body-class/trunk/custom_body_class.php
r2123377 r2316707 4 4 Plugin URI: https://a.lup.dev 5 5 Description: A plugin which allows you to add a custom CSS class the HTML body tag 6 Version: 0.7. 16 Version: 0.7. 7 7 Author: Andrei Lupu 8 8 Author URI: https://a.lup.dev -
wp-custom-body-class/trunk/plugin-defaults.php
r2016871 r2316707 6 6 7 7 'display_on_post_types' => array('post' => 'on', 'page' => 'on'), 8 'allow_edit_on_post_page' => 1,9 'admins_only' => 0,10 'enable_autocomplete' => 1,8 'allow_edit_on_post_page' => , 9 'admins_only' => , 10 'enable_autocomplete' => , 11 11 'global_class' => '', 12 12 -
wp-custom-body-class/trunk/readme.txt
r2123377 r2316707 3 3 Tags: custom, body, css, class 4 4 Requires at least: 4.9.0 5 Tested up to: 5. 2.06 Stable tag: 0.7. 15 Tested up to: 5. 6 Stable tag: 0.7. 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 23 23 24 24 == Changelog == 25 26 27 25 28 26 29 = 0.7.1 = -
wp-custom-body-class/trunk/views/admin.php
r2118841 r2316707 9 9 * @author Andrei Lupu <euthelup@gmail.com> 10 10 * @license GPL-2.0+ 11 * @link http ://andrei-lupu.com11 * @link http 12 12 * @copyright 2013 Pixel Grade Media 13 13 */
Note: See TracChangeset
for help on using the changeset viewer.