Skip to content

Commit

Permalink
modified: README.txt
Browse files Browse the repository at this point in the history
	modified:   changelog.txt
	modified:   functions.php
	modified:   plugins/plugins-presentation.php
	modified:   style.css
  • Loading branch information
tenman committed Dec 12, 2018
1 parent 8fac63f commit 306bdc5
Show file tree
Hide file tree
Showing 5 changed files with 224 additions and 51 deletions.
8 changes: 4 additions & 4 deletions README.txt
@@ -1,10 +1,10 @@
# Raindrops

Contributors: nobita
Requires at least: WordPress 4.6
Tested up to: WordPress 4.9.8
Stable tag: 1.520
Version: 1.527
Requires at least: WordPress 4.8
Tested up to: WordPress 5.0
Stable tag: 1.527
Version: 1.528
License: GPLv2
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: one-column, two-columns, three-columns, four-columns, left-sidebar, right-sidebar, custom-colors, custom-header, custom-background, custom-menu, editor-style, theme-options, threaded-comments, sticky-post, translation-ready, post-formats, featured-images, full-width-template, rtl-language-support, microformats, grid-layout, flexible-header, custom-logo, featured-image-header, footer-widgets
Expand Down
12 changes: 12 additions & 0 deletions changelog.txt
@@ -1,4 +1,16 @@
Changelog -----------------------------------
version:1.528

Overview of Changes


Files Modified


Description of Code Changes
please see https://themes.trac.wordpress.org/changeset?old_path=raindrops/1.527&new_path=raindrops/1.528
-----------------------------------------------Changelog -----------------------------------
Changelog -----------------------------------
version:1.527

Overview of Changes
Expand Down
33 changes: 28 additions & 5 deletions functions.php
Expand Up @@ -9,8 +9,6 @@
exit;
}
do_action( 'raindrops_before' );


/**
* move from hooks.php
* and change from load_textdomain( ) to load_theme_text_domain( )
Expand Down Expand Up @@ -14665,22 +14663,47 @@ function raindrops_scripts_operate_only_front_end() {

}
}

if ( ! function_exists( 'raindrops_custom_gutenberg_edit_link' ) ) {

/**
*
* @param type $link
* @param type $post_id
* @param type $text
* @return type
*/
function raindrops_custom_gutenberg_edit_link( $link, $post_id, $text ) {

if ( ( current_user_can( 'edit_posts' ) || current_user_can( 'edit_pages' ) ) && function_exists( 'has_blocks' ) && ! has_blocks( $post_id ) ) {
$which = get_post_meta( $post_id, 'classic-editor-remember', true );
$allow_users_option = get_option( 'classic-editor-allow-users' );

$disallow_old_post_open_classic_editor = apply_filters( 'disallow_old_post_open_classic_editor', false );

if ( 'allow' == $allow_users_option ) {

if ( ( current_user_can( 'edit_posts' ) || current_user_can( 'edit_pages' ) ) && 'classic-editor' == $which ) {

$gutenberg_action = sprintf(
'<a href="%1$s" class="skin-button">%2$s</a>', esc_url( add_query_arg(
array( 'post' => $post_id, 'action' => 'edit', 'classic-editor' => '', 'classic-editor__forget' => '' ), admin_url( 'post.php' )
) ), esc_html__( 'Classic Editor', 'raindrops' ) );

return $gutenberg_action;
}
}
if ( ( current_user_can( 'edit_posts' ) || current_user_can( 'edit_pages' ) ) && ! metadata_exists( 'post', $post_id, 'classic-editor-remember' ) && ! $disallow_old_post_open_classic_editor ) {

$gutenberg_action = sprintf(
'<a href="%1$s" class="skin-button">%2$s</a>', esc_url( add_query_arg(
array( 'post' => $post_id, 'action' => 'edit', 'classic-editor' => '' ), admin_url( 'post.php' )
array( 'post' => $post_id, 'action' => 'edit', 'classic-editor' => '', 'classic-editor__forget' => '' ), admin_url( 'post.php' )
) ), esc_html__( 'Classic Editor', 'raindrops' ) );

return $gutenberg_action;
}

return $link;
}

}

/**
Expand Down

0 comments on commit 306bdc5

Please sign in to comment.