Skip to content

Commit

Permalink
Merge pull request #91 from Automattic/remove/add_poll_button
Browse files Browse the repository at this point in the history
Remove the "Add Poll" button
  • Loading branch information
donnchawp authored Nov 8, 2022
2 parents 98e39f5 + fabf483 commit c45c37a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
6 changes: 0 additions & 6 deletions polldaddy.php
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,6 @@ function admin_menu() {
add_action( "load-$hook", array( $this, 'management_page_load' ) );
}

add_action( 'media_buttons', array( &$this, 'media_buttons' ) );
}

function menu_alter() {
Expand Down Expand Up @@ -393,11 +392,6 @@ function api_key_page() {
<?php
}

function media_buttons() {
$title = __( 'Add Poll', 'polldaddy' );
echo " <a href='admin.php?page=polls&iframe&TB_iframe=true' onclick='return false;' id='add_poll' class='button thickbox' title='" . esc_attr( $title ) . "'><img src='{$this->base_url}img/[email protected]' width='15' height='15' alt='" . esc_attr( $title ) . "' style='margin: -2px 0 0 -1px; padding: 0 2px 0 0; vertical-align: middle;' /> " . esc_html( $title ) . "</a>";
}

function get_usercode( $for_current_user = false ) {
// sitewide access to Crowdsignal account
if ( ! $for_current_user && $user_id = get_option( 'polldaddy_usercode_user' ) ) {
Expand Down
3 changes: 3 additions & 0 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ Some strings are not translated when polls and surveys are embedded. You will ha

Development of the plugin will take place in [this Github repository](https://github.com/Automattic/crowdsignal-plugin).

=== The Classic Editor ===
If you are a long time user of this plugin and you still use the classic post editor, the best way to create polls is through your [Crowdsignal account](https://app.crowdsignal.com/dashboard/) where you have a number of different ways to share polls (and surveys). However, up to version 2.2.6, this plugin had an "Add Poll" button above the post editor that opened a very basic poll editor. That "Add Poll" button has since been removed but if you would still like to use it, open up the wp-admin dashboard on your WordPress site. Add "admin.php?page=polls&action=create-poll" to the end of the URL, after "wp-admin/" so it looks like https://example.com/wp-admin/admin.php?page=polls&action=create-poll and you will see the old poll editor. Bookmark that URL if you still want to use that poll editor. We do not recommend using version 2.2.6 of the plugin as you will miss out on many bug fixes and new features added since then.

== Installation ==

Upload the plugin to your blog (or search for it and install it on your plugins page), activate it, then go to Settings->Crowdsignal to configure the plugin. You'll need a Crowdsignal API key available from your [Crowdsignal account page](https://app.crowdsignal.com/account/#apikey) to sync your account and pull in your existing polls and ratings.
Expand Down

0 comments on commit c45c37a

Please sign in to comment.